Skip to content

test

test #166

Workflow file for this run

name: "build"
on: push
jobs:
build_android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Get build tool versions
id: build_tool_versions
run: sed "s/ /=/" .build-tool-versions >> "$GITHUB_ENV"
- name: Set ANDROID_NDK_HOME to specified version
run: echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${{ steps.build_tool_versions.outputs.ndk }}" >> "$GITHUB_ENV"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.build_tool_versions.outputs.rust }}
targets: armv7-linux-androideabi,aarch64-linux-android,i686-linux-android,x86_64-linux-android
- name: Install protobuf compiler
run: sudo apt-get install protobuf-compiler
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ steps.build_tool_versions.outputs.jdk }}
- name: Install cargo-ndk
run: cargo install cargo-ndk --version ${{ steps.build_tool_versions.outputs.cargo-ndk }}
- name: Build
run: ./gradlew --no-daemon assembleBluetoothRelease
working-directory: android
- name: Rename apk
run: mv android/app/build/outputs/apk/bluetooth/release/app-bluetooth-release-unsigned.apk openscq30_android.apk
- name: Upload apk
uses: actions/upload-artifact@v4
with:
name: android
path: openscq30_android.apk