ci: provision Android SDK and Java on the Windows runner
This commit is contained in:
1 parent
cb7e6acb59
commit
9e4e979e7a
1 file changed
+10
-1
@@ -13,11 +13,20 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
github-server-url: https://gitea.twinpay.one
|
github-server-url: https://gitea.twinpay.one
|
||||||
|
- name: Set up Java 21
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: '21'
|
||||||
|
- name: Set up Android SDK
|
||||||
|
uses: android-actions/setup-android@v3
|
||||||
|
with:
|
||||||
|
packages: 'platform-tools platforms;android-37 build-tools;37.0.0'
|
||||||
|
log-accepted-android-sdk-licenses: false
|
||||||
- name: Test and build exact commit
|
- name: Test and build exact commit
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
. "$env:LOCALAPPDATA\aiturk-mobile-tools\ortam.ps1"
|
|
||||||
if ((git rev-parse HEAD).Trim() -ne $env:GITHUB_SHA) { throw 'Checkout SHA mismatch' }
|
if ((git rev-parse HEAD).Trim() -ne $env:GITHUB_SHA) { throw 'Checkout SHA mismatch' }
|
||||||
.\gradlew.bat testDebugUnitTest assembleDebug compileReleaseKotlin --no-daemon --console=plain
|
.\gradlew.bat testDebugUnitTest assembleDebug compileReleaseKotlin --no-daemon --console=plain
|
||||||
exit $LASTEXITCODE
|
exit $LASTEXITCODE
|
||||||
Reference in new issue
Block a user