mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-04 11:13:17 +00:00
Refactor Android CI workflow to use Nix actions and improve translation file collection
Some checks failed
Android / build (push) Failing after 6m17s
Some checks failed
Android / build (push) Failing after 6m17s
This commit is contained in:
parent
49bc90c00c
commit
d1a4cd98cc
2 changed files with 73 additions and 19 deletions
42
.github/workflows/android.yaml
vendored
42
.github/workflows/android.yaml
vendored
|
|
@ -11,28 +11,32 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install Nix (for nix usage)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
|
||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||
nix --version
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Prepare Nix devshell
|
||||
uses: ./.github/actions/nix-devshell
|
||||
with:
|
||||
prebuild: "true"
|
||||
cache: "true"
|
||||
cache-key-files: "flake.lock"
|
||||
|
||||
- name: Collect Translation Files
|
||||
run: |
|
||||
set -euo pipefail
|
||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||
nix --version
|
||||
cd lib/l10n
|
||||
nix --extra-experimental-features 'nix-command flakes' develop --command python3 collect_translations.py
|
||||
cd ../..
|
||||
uses: ./.github/actions/nix-devshell
|
||||
with:
|
||||
commands: |
|
||||
cd lib/l10n
|
||||
python3 collect_translations.py
|
||||
|
||||
- name: Build Debug APK
|
||||
run: |
|
||||
set -euo pipefail
|
||||
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||
nix --version
|
||||
nix --extra-experimental-features 'nix-command flakes' develop --command flutter build apk --debug
|
||||
uses: ./.github/actions/nix-devshell
|
||||
with:
|
||||
commands: |
|
||||
flutter build apk --debug --target-platform android-arm64
|
||||
|
||||
- name: Upload APK artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: app-debug-apk
|
||||
path: build/app/outputs/flutter-apk/*.apk
|
||||
# retention-days: 90
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue