File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 6060 type : boolean
6161 description : " Boolean to enable running build in windows docker container. Defaults to true"
6262 default : true
63+ enable_android_checks :
64+ type : boolean
65+ description : " Boolean to enable android testing. Defaults to false"
66+ default : false
67+ android_exclude_swift_versions :
68+ type : string
69+ description : " Exclude Android Swift version list (JSON)"
70+ default : " [{\" swift_version\" : \"\" }]"
6371 needs_token :
6472 type : boolean
6573 description : " Boolean to enable providing the GITHUB_TOKEN to downstream job."
@@ -187,3 +195,26 @@ jobs:
187195 Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
188196 RefreshEnv
189197 powershell.exe -NoLogo -File $env:TEMP\test-script\run.ps1; exit $LastExitCode
198+
199+ android-build :
200+ name : Android (${{ matrix.swift_version }}
201+ if : ${{ inputs.enable_android_checks }}
202+ runs-on : ' ubuntu-24.04'
203+ strategy :
204+ fail-fast : false
205+ matrix :
206+ swift_version : ['nightly-6.1']
207+ exclude :
208+ - ${{ fromJson(inputs.android_exclude_swift_versions) }}
209+ steps :
210+ - name : Checkout repository
211+ uses : actions/checkout@v4
212+ - name : Provide token
213+ if : ${{ inputs.needs_token }}
214+ run : |
215+ echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
216+ - name : Build / Test
217+ uses : skiptools/swift-android-action@v2
218+ with :
219+ swift-version : ${{ matrix.swift_version }}
220+
You can’t perform that action at this time.
0 commit comments