chore: fix cmake version issue in CI #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Debug | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
instrumented_tests: | |
name: Run Scripts | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Android SDK | |
uses: amyu/setup-android@v3 | |
with: | |
sdk-version: 34 | |
build-tools-version: 34.0.0 | |
cmake-version: 3.10.2.4988404 | |
ndk-version: 26.1.10909125 | |
- name: rust toolchain setup | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: install cargo ndk | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-ndk | |
- name: setup build targets | |
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android aarch64-apple-ios x86_64-apple-ios | |
- name: Build Android Cargo | |
run: ./gradlew cargoBuild | |
env: | |
ANDROID_NDK_HOME: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125 | |
TOOLCHAIN: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64 | |
RANLIB: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Build Debug APK | |
run: ./gradlew assembleDebug | |
# Upload artifact as a release asset | |
- name: Upload Release Asset | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload ${{ github.event.release.tag_name }} app/build/outputs/apk/debug/app-debug.apk |