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:
|
|
|
|
pre_job:
|
2023-03-30 23:55:03 +02:00
|
|
|
if: github.repository == 'laurent22/joplin'
|
2022-11-11 16:09:55 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
|
|
steps:
|
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
|
|
|
|
|
|
|
BuildAndroidDebug:
|
|
|
|
needs: pre_job
|
2023-05-15 20:58:59 +02:00
|
|
|
if: github.repository == 'laurent22/joplin' && needs.pre_job.outputs.should_skip != 'true'
|
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
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '18'
|
2023-08-05 17:57:17 +02:00
|
|
|
cache: 'yarn'
|
2022-11-11 16:09:55 +02:00
|
|
|
|
|
|
|
- name: Install Yarn
|
|
|
|
run: |
|
|
|
|
corepack enable
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
- name: Build Android Release
|
|
|
|
run: |
|
|
|
|
cd packages/app-mobile/android && ./gradlew assembleDebug
|
|
|
|
|