mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-04 09:43:19 +00:00
This commit is contained in:
parent
e3e67f5b29
commit
46e60729f0
1 changed files with 42 additions and 0 deletions
42
.github/workflows/android.yaml
vendored
42
.github/workflows/android.yaml
vendored
|
|
@ -14,6 +14,40 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Cache /nix/store (experimental, may be large)
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: /nix/store
|
||||||
|
key:
|
||||||
|
${{ runner.os }}-nix-store-${{ hashFiles('flake.lock','flake.nix')
|
||||||
|
}}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nix-store-
|
||||||
|
|
||||||
|
- name: Cache Flutter Pub
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.pub-cache
|
||||||
|
key:
|
||||||
|
${{ runner.os }}-pub-${{ hashFiles('pubspec.lock','pubspec.yaml')
|
||||||
|
}}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pub-
|
||||||
|
|
||||||
|
- name: Cache Gradle
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
|
android/.gradle
|
||||||
|
key:
|
||||||
|
${{ runner.os }}-gradle-${{
|
||||||
|
hashFiles('android/gradle.properties','android/gradle/wrapper/gradle-wrapper.properties')
|
||||||
|
}}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Prepare Nix devshell
|
- name: Prepare Nix devshell
|
||||||
uses: ./.github/actions/nix-devshell
|
uses: ./.github/actions/nix-devshell
|
||||||
with:
|
with:
|
||||||
|
|
@ -26,6 +60,14 @@ jobs:
|
||||||
cd lib/l10n
|
cd lib/l10n
|
||||||
python3 collect_translations.py
|
python3 collect_translations.py
|
||||||
|
|
||||||
|
- name: Restore Dart packages
|
||||||
|
uses: ./.github/actions/nix-devshell
|
||||||
|
with:
|
||||||
|
commands: |
|
||||||
|
# ensure collected translations directory exists so pub get doesn't fail during code generation
|
||||||
|
mkdir -p lib/l10n/collected
|
||||||
|
flutter pub get
|
||||||
|
|
||||||
- name: Build Debug APK
|
- name: Build Debug APK
|
||||||
uses: ./.github/actions/nix-devshell
|
uses: ./.github/actions/nix-devshell
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue