1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 13:06:01 +01:00

Merge pull request #68 from DeterminateSystems/determinate-nix-action

Switch to determinate-nix-action
This commit is contained in:
Luc Perkins 2025-05-16 21:14:34 +00:00 committed by GitHub
commit 162e21820d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 29 deletions

View file

@ -25,9 +25,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: nix build .#packages.${{ inputs.system }}.default .#packages.${{ inputs.system }}.binaryTarball --no-link -L - run: nix build .#packages.${{ inputs.system }}.default .#packages.${{ inputs.system }}.binaryTarball --no-link -L
- run: nix build .#packages.${{ inputs.system }}.binaryTarball --out-link tarball - run: nix build .#packages.${{ inputs.system }}.binaryTarball --out-link tarball
@ -44,8 +42,6 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: nix flake check -L --system ${{ inputs.system }} - run: nix flake check -L --system ${{ inputs.system }}

View file

@ -20,9 +20,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- run: nix flake show --all-systems --json - run: nix flake show --all-systems --json
build_x86_64-linux: build_x86_64-linux:
@ -57,9 +55,7 @@ jobs:
runs-on: blacksmith-32vcpu-ubuntu-2204 runs-on: blacksmith-32vcpu-ubuntu-2204
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: | - run: |
nix build -L \ nix build -L \
@ -75,9 +71,7 @@ jobs:
runs-on: blacksmith-32vcpu-ubuntu-2204 runs-on: blacksmith-32vcpu-ubuntu-2204
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: | - run: |
nix build -L --keep-going \ nix build -L --keep-going \
@ -113,9 +107,7 @@ jobs:
with: with:
repository: DeterminateSystems/flake-regressions-data repository: DeterminateSystems/flake-regressions-data
path: flake-regressions/tests path: flake-regressions/tests
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh - run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh
@ -144,9 +136,7 @@ jobs:
with: with:
repository: DeterminateSystems/flake-regressions-data repository: DeterminateSystems/flake-regressions-data
path: flake-regressions/tests path: flake-regressions/tests
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" NIX_CONFIG="lazy-trees = true" flake-regressions/eval-all.sh - run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" NIX_CONFIG="lazy-trees = true" flake-regressions/eval-all.sh
@ -163,9 +153,7 @@ jobs:
steps: steps:
- name: Checkout nix - name: Checkout nix
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- name: Build manual - name: Build manual
run: nix build .#hydraJobs.manual run: nix build .#hydraJobs.manual

View file

@ -63,9 +63,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: "DeterminateSystems/nix-installer-action@main" - uses: DeterminateSystems/determinate-nix-action@main
with:
determinate: true
- name: Create artifacts directory - name: Create artifacts directory
run: mkdir -p ./artifacts run: mkdir -p ./artifacts
@ -107,8 +105,8 @@ jobs:
id-token: write id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/determinate-nix-action@main
- uses: "DeterminateSystems/flakehub-push@main" - uses: DeterminateSystems/flakehub-push@main
with: with:
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
visibility: "public" visibility: "public"