mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-23 05:22:07 +01:00
Apply matrix strategy
This commit is contained in:
parent
73510dc45c
commit
79ca9d8642
1 changed files with 13 additions and 53 deletions
66
.github/workflows/ci.yml
vendored
66
.github/workflows/ci.yml
vendored
|
@ -71,66 +71,26 @@ jobs:
|
|||
run: |
|
||||
[ $(nix config show substituters) == "https://cache.nixos.org/" ]
|
||||
|
||||
run-x86_64-linux:
|
||||
name: Run x86_64 Linux
|
||||
runs-on: ubuntu-22.04
|
||||
run-systems:
|
||||
name: "Run ${{ matrix.systems.nix-system }}"
|
||||
runs-on: "${{ matrix.systems.runner }}"
|
||||
permissions:
|
||||
id-token: "write"
|
||||
contents: "read"
|
||||
env:
|
||||
ACTIONS_STEP_DEBUG: true
|
||||
strategy:
|
||||
matrix:
|
||||
systems:
|
||||
- nix-system: "aarch64-darwin"
|
||||
runner: "macos-latest-xlarge"
|
||||
- nix-system: "x86_64-darwin"
|
||||
runner: "macos-12"
|
||||
- nix-system: "x86_64-linux"
|
||||
runner: "ubuntu-22.04"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
flakehub: true
|
||||
extra-conf: |
|
||||
narinfo-cache-negative-ttl = 0
|
||||
- name: Cache the store
|
||||
uses: ./
|
||||
with:
|
||||
strict-mode: true
|
||||
- name: Check the cache for liveness
|
||||
run: |
|
||||
.github/workflows/cache-test.sh
|
||||
|
||||
run-x86_64-darwin:
|
||||
name: Run x86_64 Darwin
|
||||
runs-on: macos-12
|
||||
permissions:
|
||||
id-token: "write"
|
||||
contents: "read"
|
||||
env:
|
||||
ACTIONS_STEP_DEBUG: true
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
flakehub: true
|
||||
extra-conf: |
|
||||
narinfo-cache-negative-ttl = 0
|
||||
- name: Cache the store
|
||||
uses: ./
|
||||
with:
|
||||
strict-mode: true
|
||||
- name: Check the cache for liveness
|
||||
run: |
|
||||
.github/workflows/cache-test.sh
|
||||
|
||||
run-aarch64-darwin:
|
||||
name: Run aarch64 Darwin
|
||||
concurrency: build-ARM64-macOS
|
||||
runs-on: macos-latest-xlarge
|
||||
permissions:
|
||||
id-token: "write"
|
||||
contents: "read"
|
||||
env:
|
||||
ACTIONS_STEP_DEBUG: true
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
- name: Install Nix on ${{ matrix.systems.nix-system }} system
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
flakehub: true
|
||||
|
|
Loading…
Reference in a new issue