mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-04 17:23:19 +00:00
Refactor Android CI workflow to use Nix actions and improve translation file collection
Some checks failed
Android / build (push) Failing after 7m10s
Some checks failed
Android / build (push) Failing after 7m10s
This commit is contained in:
parent
49bc90c00c
commit
2d9aca9000
2 changed files with 103 additions and 19 deletions
35
.github/workflows/android.yaml
vendored
35
.github/workflows/android.yaml
vendored
|
|
@ -11,28 +11,25 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue