2022-11-11 16:09:55 +02:00
|
|
|
# The goal of this action is to compile the Android debug build. That should
|
|
|
|
# tell us automatically if something got broken when a dependency was changed.
|
|
|
|
|
|
|
|
name: react-native-android-build-apk
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-06-12 22:16:18 +02:00
|
|
|
AssembleRelease:
|
2024-11-05 19:29:50 +02:00
|
|
|
if: github.repository == 'laurent22/joplin'
|
2022-11-11 16:09:55 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Linux dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update || true
|
|
|
|
sudo apt-get install -y libsecret-1-dev
|
2024-05-21 11:12:20 +02:00
|
|
|
|
|
|
|
- uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: '20'
|
2023-08-05 18:06:58 +02:00
|
|
|
|
2024-01-08 13:53:46 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-11 16:09:55 +02:00
|
|
|
|
2024-04-07 15:42:50 +02:00
|
|
|
- uses: actions/setup-node@v4
|
2022-11-11 16:09:55 +02:00
|
|
|
with:
|
|
|
|
node-version: '18'
|
2023-08-05 17:57:17 +02:00
|
|
|
cache: 'yarn'
|
2022-11-11 16:09:55 +02:00
|
|
|
|
2024-11-17 18:21:08 +02:00
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
2022-11-11 16:09:55 +02:00
|
|
|
- name: Install Yarn
|
|
|
|
run: |
|
|
|
|
corepack enable
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: yarn install
|
|
|
|
|
2024-06-12 22:16:18 +02:00
|
|
|
- name: Assemble Android Release
|
2022-11-11 16:09:55 +02:00
|
|
|
run: |
|
2024-06-13 10:01:45 +02:00
|
|
|
cd packages/app-mobile/android
|
|
|
|
sed -i -- 's/signingConfig signingConfigs.release/signingConfig signingConfigs.debug/' app/build.gradle
|
|
|
|
./gradlew assembleRelease
|
2022-11-11 16:09:55 +02:00
|
|
|
|