mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-04 12:01:48 +02:00
ci: cache-nix-action preffered
magic cache doesnt work due to size
This commit is contained in:
@@ -4,9 +4,9 @@ permissions:
|
|||||||
actions: write
|
actions: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
@@ -19,10 +19,12 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: DeterminateSystems/determinate-nix-action@v3
|
- 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
|
- name: Check formatting, clippy lint, unit tests & ort version
|
||||||
run: nix flake check --show-trace
|
run: nix flake check --show-trace
|
||||||
|
|||||||
@@ -27,10 +27,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/determinate-nix-action@v3
|
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
|
- name: Read ORT version from flake
|
||||||
id: ort_version
|
id: ort_version
|
||||||
@@ -207,10 +209,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/determinate-nix-action@v3
|
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
|
- name: Build Docker image with Nix
|
||||||
run: nix build .#dockerImage -L --show-trace
|
run: nix build .#dockerImage -L --show-trace
|
||||||
|
|||||||
Reference in New Issue
Block a user