2222
2323 steps :
2424 - uses : actions/checkout@v4
25- - uses : brightdigit/swift-build@v1.3.3
25+ - uses : brightdigit/swift-build@v1.4.1
2626 - uses : sersoft-gmbh/swift-coverage-action@v4
2727 id : coverage-files
2828 with :
4949 build : 6.2-RELEASE
5050 steps :
5151 - uses : actions/checkout@v4
52- - uses : brightdigit/swift-build@v1.3.3
52+ - uses : brightdigit/swift-build@v1.4.1
5353 with :
5454 windows-swift-version : ${{ matrix.swift.version }}
5555 windows-swift-build : ${{ matrix.swift.build }}
6262 token : ${{ secrets.CODECOV_TOKEN }}
6363 os : windows
6464 swift_project : MistKit
65- # files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
65+ # files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
66+ build-android :
67+ name : Build on Android
68+ runs-on : ubuntu-latest
69+ if : ${{ !contains(github.event.head_commit.message, 'ci skip') }}
70+ strategy :
71+ fail-fast : false
72+ matrix :
73+ swift :
74+ - version : " 6.1"
75+ - version : " 6.2"
76+ android-api-level : [28, 33, 34]
77+ steps :
78+ - uses : actions/checkout@v4
79+ - name : Free disk space
80+ if : matrix.build-only == false
81+ uses : jlumbroso/free-disk-space@main
82+ with :
83+ tool-cache : false
84+ android : false
85+ dotnet : true
86+ haskell : true
87+ large-packages : true
88+ docker-images : true
89+ swap-storage : true
90+ - uses : brightdigit/swift-build@v1.4.1
91+ with :
92+ scheme : ${{ env.PACKAGE_NAME }}
93+ type : android
94+ android-swift-version : ${{ matrix.swift.version }}
95+ android-api-level : ${{ matrix.android-api-level }}
96+ android-run-tests : true
97+ # Note: Code coverage is not supported on Android builds
98+ # The Swift Android SDK does not include LLVM coverage tools (llvm-profdata, llvm-cov)
6699 build-macos :
67100 name : Build on macOS
68101 env :
@@ -132,7 +165,7 @@ jobs:
132165 - uses : actions/checkout@v4
133166
134167 - name : Build and Test
135- uses : brightdigit/swift-build@v1.3.3
168+ uses : brightdigit/swift-build@v1.4.1
136169 with :
137170 scheme : ${{ env.PACKAGE_NAME }}
138171 type : ${{ matrix.type }}
@@ -153,9 +186,9 @@ jobs:
153186
154187 lint :
155188 name : Linting
156- if : " !contains(github.event.head_commit.message, 'ci skip')"
189+ if : " !contains(github.event.head_commit.message, 'ci skip')"
157190 runs-on : ubuntu-latest
158- needs : [build-ubuntu, build-macos, build-windows]
191+ needs : [build-ubuntu, build-macos, build-windows, build-android ]
159192 env :
160193 MINT_PATH : .mint/lib
161194 MINT_LINK_PATH : .mint/bin
0 commit comments