Skip to content

Commit

Permalink
Also run android sqlcipher on github hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Apr 23, 2024
1 parent 432697a commit 88528b6
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Gradle
if: env.turbo_cache_hit != 1
uses: actions/cache@v3
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build example for Android
env:
JAVA_OPTS: '-XX:MaxHeapSize=6g'
Expand Down Expand Up @@ -196,7 +185,7 @@ jobs:
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
build-android-sqlcipher:
runs-on: self-hosted
runs-on: ubuntu-latest
env:
TURBO_CACHE_DIR: .turbo/android
steps:
Expand Down Expand Up @@ -226,6 +215,18 @@ jobs:
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi
- name: Install JDK
if: env.turbo_cache_hit != 1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Finalize Android SDK
if: env.turbo_cache_hit != 1
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
- name: Cache Gradle
if: env.turbo_cache_hit != 1
uses: actions/cache@v3
Expand Down

0 comments on commit 88528b6

Please sign in to comment.