mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
Merge pull request #68 from DeterminateSystems/determinate-nix-action
Switch to determinate-nix-action
This commit is contained in:
commit
162e21820d
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
|
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 }}
|
||||||
|
|
|
||||||
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
8
.github/workflows/upload-release.yml
vendored
8
.github/workflows/upload-release.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue