mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
af772762ef
Android NDK is updated from legacy ndk-bundle stuck at unsupported r22b to LTS NDK r23c (23.2.8568313). Since GNU binutils have been removed from NDK since r23 (see https://github.com/android/ndk/wiki/Changelog-r23), ndk-make.sh now uses TARGET_AR=llvm-ar and uses a workaround for `-lgcc` requirement. Android command line tools used in the Dockerfile are updated to build 8512546 Preview APKs now use NDK r23c too.
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Upload Preview APK
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
name: Upload Preview APK
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- run: cp jni/deltachat-core-rust/rust-toolchain .
|
|
- uses: actions-rs/toolchain@v1
|
|
- uses: Swatinem/rust-cache@v1
|
|
with:
|
|
working-directory: jni/deltachat-core-rust
|
|
- uses: actions/setup-java@v1.4.3
|
|
with:
|
|
java-version: 11
|
|
- uses: android-actions/setup-android@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- uses: nttld/setup-ndk@v1
|
|
id: setup-ndk
|
|
with:
|
|
ndk-version: r23c
|
|
|
|
- name: Compile core
|
|
env:
|
|
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
|
run: |
|
|
export PATH="${PATH}:${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin/:${ANDROID_NDK_ROOT}"
|
|
./scripts/install-toolchains.sh && ./ndk-make.sh
|
|
|
|
- name: Build APK
|
|
run: ./gradlew --no-daemon assembleGplayDebug
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: app-preview.apk
|
|
path: 'build/outputs/apk/gplay/debug/*.apk'
|