ci: cache-nix-action preffered

magic cache doesnt work due to size
This commit is contained in:
Per Stark
2026-06-23 08:01:04 +02:00
parent 253ac9819d
commit aee9136f1e
2 changed files with 16 additions and 10 deletions
+6 -4
View File
@@ -4,9 +4,9 @@ permissions:
actions: write
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
check:
@@ -19,10 +19,12 @@ jobs:
submodules: recursive
- uses: DeterminateSystems/determinate-nix-action@v3
with:
determinate: false
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 10G
- name: Check formatting, clippy lint, unit tests & ort version
run: nix flake check --show-trace
+10 -6
View File
@@ -27,10 +27,12 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
with:
determinate: false
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 10G
- name: Read ORT version from flake
id: ort_version
@@ -207,10 +209,12 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
with:
determinate: false
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock', 'Cargo.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 10G
- name: Build Docker image with Nix
run: nix build .#dockerImage -L --show-trace