Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup release test matrix re: dnixd #1186

Merged
merged 8 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-aarch64-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-aarch64-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-x86_64-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-x86_64-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand Down
153 changes: 86 additions & 67 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand All @@ -62,7 +62,7 @@ jobs:
needs: [lints, build-x86_64-linux]
strategy:
matrix:
extra-args: ["--determinate", ""]
determinate: [true, false]
permissions:
id-token: "write"
contents: "read"
Expand All @@ -83,13 +83,20 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
extra-args: ${{ matrix.extra-args }}
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
run: |
if test -x /usr/local/bin/determinate-nixd; then
echo "determinate-nixd is present"
${{ matrix.determinate }}
else
echo "determinate-nixd is not present"
${{ !matrix.determinate }}
fi
- name: Initial uninstall (without a `nix run` first)
run: sudo -E /nix/nix-installer uninstall
env:
Expand All @@ -114,13 +121,11 @@ jobs:
- name: Repeated install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
extra-args: ${{ matrix.extra-args }}
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
Expand Down Expand Up @@ -175,7 +180,7 @@ jobs:
needs: [lints, build-x86_64-linux]
strategy:
matrix:
extra-args: ["--determinate", ""]
determinate: [true, false]
permissions:
id-token: "write"
contents: "read"
Expand All @@ -196,15 +201,22 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
init: none
extra-args: ${{ matrix.extra-args }}
planner: linux
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
planner: linux
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
run: |
if test -x /usr/local/bin/determinate-nixd; then
echo "determinate-nixd is present"
${{ matrix.determinate }}
else
echo "determinate-nixd is not present"
${{ !matrix.determinate }}
fi
- name: Ensure daemon was not configured with init
run: |
if systemctl is-active nix-daemon.socket; then
Expand All @@ -231,15 +243,13 @@ jobs:
- name: Repeated install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
init: none
planner: linux
extra-args: ${{ matrix.extra-args }}
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
planner: linux
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
Expand Down Expand Up @@ -294,7 +304,7 @@ jobs:
needs: [lints, build-x86_64-darwin]
strategy:
matrix:
extra-args: ["--determinate", ""]
determinate: [true, false]
permissions:
id-token: "write"
contents: "read"
Expand All @@ -315,15 +325,20 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
extra-args: ${{ matrix.extra-args }}
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
trusted-users = root runner
logger: pretty
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
run: |
if test -x /usr/local/bin/determinate-nixd; then
echo "determinate-nixd is present"
${{ matrix.determinate }}
else
echo "determinate-nixd is not present"
${{ !matrix.determinate }}
fi
- name: Initial uninstall (without a `nix run` first)
run: sudo -E /nix/nix-installer uninstall
env:
Expand All @@ -334,14 +349,11 @@ jobs:
- name: Repeated install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
extra-args: ${{ matrix.extra-args }}
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: trusted-users = root runner
logger: pretty
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
Expand Down Expand Up @@ -382,7 +394,7 @@ jobs:
needs: [lints, build-aarch64-linux]
strategy:
matrix:
extra-args: ["--determinate", ""]
determinate: [true, false]
permissions:
id-token: "write"
contents: "read"
Expand All @@ -403,13 +415,20 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
extra-args: ${{ matrix.extra-args }}
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
run: |
if test -x /usr/local/bin/determinate-nixd; then
echo "determinate-nixd is present"
${{ matrix.determinate }}
else
echo "determinate-nixd is not present"
${{ !matrix.determinate }}
fi
- name: Initial uninstall (without a `nix run` first)
run: sudo -E /nix/nix-installer uninstall
env:
Expand All @@ -434,13 +453,11 @@ jobs:
- name: Repeated install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
logger: pretty
extra-args: ${{ matrix.extra-args }}
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
logger: pretty
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
Expand Down Expand Up @@ -495,7 +512,7 @@ jobs:
needs: [lints, build-aarch64-darwin]
strategy:
matrix:
extra-args: ["--determinate", ""]
determinate: [true, false]
permissions:
id-token: "write"
contents: "read"
Expand All @@ -516,15 +533,20 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
extra-args: ${{ matrix.extra-args }}
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
trusted-users = root runner
logger: pretty
- name: "Validate dnixd is ${{ matrix.determinate && 'installed' || 'uninstalled' }}"
run: |
if test -x /usr/local/bin/determinate-nixd; then
echo "determinate-nixd is present"
${{ matrix.determinate }}
else
echo "determinate-nixd is not present"
${{ !matrix.determinate }}
fi
- name: Initial uninstall (without a `nix run` first)
run: sudo -E /nix/nix-installer uninstall
env:
Expand All @@ -535,14 +557,11 @@ jobs:
- name: Repeated install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: ${{ matrix.determinate }}
local-root: install-root/
extra-args: ${{ matrix.extra-args }}
logger: pretty
log-directives: nix_installer=debug
backtrace: full
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: trusted-users = root runner
logger: pretty
- name: echo $PATH
run: echo $PATH
- name: Test `nix` with `$GITHUB_PATH`
Expand Down Expand Up @@ -603,11 +622,11 @@ jobs:
- name: Initial install
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
backtrace: full
determinate: true
local-root: install-root/
logger: pretty
log-directives: nix_installer=debug
backtrace: full
logger: pretty
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-gha-cache: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
determinate: true
- name: Enable Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
with:
Expand Down
Loading