mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Switch to determinate-nix-action
This commit is contained in:
parent
6baf6470bf
commit
aa2404abd8
3 changed files with 11 additions and 29 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -25,9 +25,7 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-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 }}.binaryTarball --out-link tarball
|
||||
|
|
@ -44,8 +42,6 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- run: nix flake check -L --system ${{ inputs.system }}
|
||||
|
|
|
|||
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
|
@ -20,9 +20,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- run: nix flake show --all-systems --json
|
||||
|
||||
build_x86_64-linux:
|
||||
|
|
@ -57,9 +55,7 @@ jobs:
|
|||
runs-on: blacksmith-32vcpu-ubuntu-2204
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- run: |
|
||||
nix build -L \
|
||||
|
|
@ -75,9 +71,7 @@ jobs:
|
|||
runs-on: blacksmith-32vcpu-ubuntu-2204
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- run: |
|
||||
nix build -L --keep-going \
|
||||
|
|
@ -113,9 +107,7 @@ jobs:
|
|||
with:
|
||||
repository: DeterminateSystems/flake-regressions-data
|
||||
path: flake-regressions/tests
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-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
|
||||
|
||||
|
|
@ -144,9 +136,7 @@ jobs:
|
|||
with:
|
||||
repository: DeterminateSystems/flake-regressions-data
|
||||
path: flake-regressions/tests
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-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
|
||||
|
||||
|
|
@ -163,9 +153,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout nix
|
||||
uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- name: Build manual
|
||||
run: nix build .#hydraJobs.manual
|
||||
|
|
|
|||
8
.github/workflows/upload-release.yml
vendored
8
.github/workflows/upload-release.yml
vendored
|
|
@ -63,9 +63,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: "DeterminateSystems/nix-installer-action@main"
|
||||
with:
|
||||
determinate: true
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
|
||||
- name: Create artifacts directory
|
||||
run: mkdir -p ./artifacts
|
||||
|
|
@ -107,8 +105,8 @@ jobs:
|
|||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: "DeterminateSystems/flakehub-push@main"
|
||||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- uses: DeterminateSystems/flakehub-push@main
|
||||
with:
|
||||
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
visibility: "public"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue