Skip to content

fix(code-editor): Avoid unreachable compilation error with no languag… #598

fix(code-editor): Avoid unreachable compilation error with no languag…

fix(code-editor): Avoid unreachable compilation error with no languag… #598

Workflow file for this run

name: Rust Android Build
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
env:
CARGO_TERM_COLOR: always
ANDROID_NDK_HOME: /home/runner/android-ndk-r26d
ANDROID_NDK: /home/runner/android-ndk-r26d
jobs:
android:
runs-on: ubuntu-latest
concurrency:
group: rust-android-${{ github.ref_name }}
cancel-in-progress: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
submodules: true
- name: Remove unused programs
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
- name: Install NDK r26d
run: |
curl -sSfL -o ndk.zip https://dl.google.com/android/repository/android-ndk-r26d-linux.zip
unzip -q ndk.zip -d /home/runner
rm ndk.zip
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1
with:
target: aarch64-linux-android, x86_64-linux-android
- name: Install cargo-ndk
run: cargo install cargo-ndk
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
- name: Build Android example
working-directory: examples/android/AndroidApp
run: ./gradlew buildRelease