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
8a4d396f46
1 changed files with 45 additions and 0 deletions
45
.github/workflows/android.yaml
vendored
45
.github/workflows/android.yaml
vendored
|
|
@ -9,11 +9,56 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ENABLE_NIX_STORE_CACHE: 'true' # set to 'true' to test caching the whole /nix/store (risky)
|
||||||
|
USE_CACHIX: 'false' # set to 'true' to enable Cachix step
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Cache Nix local cache (~/.cache/nix)
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ env.HOME }}/.cache/nix
|
||||||
|
key: ${{ runner.os }}-nix-local-${{ hashFiles('flake.lock','flake.nix') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nix-local-
|
||||||
|
|
||||||
|
- name: (Optional) Cache entire /nix/store (experimental, very large)
|
||||||
|
if: env.ENABLE_NIX_STORE_CACHE == 'true'
|
||||||
|
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: (Optional) Setup Cachix (use binary cache)
|
||||||
|
if: env.USE_CACHIX == 'true'
|
||||||
|
uses: cachix/cachix-action@v14
|
||||||
|
with:
|
||||||
|
name: inventree
|
||||||
|
|
||||||
|
- name: Cache Flutter Pub
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ env.HOME }}/.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: |
|
||||||
|
${{ env.HOME }}/.gradle/caches
|
||||||
|
${{ env.HOME }}/.gradle/wrapper
|
||||||
|
android/.gradle
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle*','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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue