mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
ci: update Nix to match versions in nixpkgs
This commit is contained in:
parent
a001f44cfc
commit
cbb190eccb
2 changed files with 16 additions and 24 deletions
38
.github/workflows/test.yml
vendored
38
.github/workflows/test.yml
vendored
|
@ -12,13 +12,10 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# We use the Determinate Systems installer for 2.18 because the
|
|
||||||
# Sequoia UID/GID changes have not yet been backported to the
|
|
||||||
# official installer for that version.
|
|
||||||
- name: Install nix corresponding to latest stable channel
|
- name: Install nix corresponding to latest stable channel
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
uses: cachix/install-nix-action@v30
|
||||||
with:
|
with:
|
||||||
nix-package-url: https://releases.nixos.org/nix/nix-2.18.5/nix-2.18.5-x86_64-darwin.tar.xz
|
install_url: https://releases.nixos.org/nix/nix-2.18.8/install
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A tests
|
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A tests
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A manpages
|
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A manpages
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A examples.simple
|
- run: nix-build ./release.nix -I nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }} -I darwin=. -A examples.simple
|
||||||
|
@ -29,9 +26,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install nix from current unstable channel
|
- name: Install nix from current unstable channel
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v30
|
||||||
with:
|
with:
|
||||||
install_url: https://releases.nixos.org/nix/nix-2.24.6/install
|
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A tests
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A tests
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A manpages
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A manpages
|
||||||
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A examples.simple
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-unstable -I darwin=. -A examples.simple
|
||||||
|
@ -41,20 +38,18 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# We use the Determinate Systems installer for 2.18 because the
|
|
||||||
# Sequoia UID/GID changes have not yet been backported to the
|
|
||||||
# official installer for that version.
|
|
||||||
- name: Install nix corresponding to latest stable channel
|
- name: Install nix corresponding to latest stable channel
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
uses: cachix/install-nix-action@v30
|
||||||
with:
|
with:
|
||||||
nix-package-url: https://releases.nixos.org/nix/nix-2.18.5/nix-2.18.5-x86_64-darwin.tar.xz
|
install_url: https://releases.nixos.org/nix/nix-2.18.8/install
|
||||||
|
nix_path: nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }}
|
||||||
- name: Install ${{ env.CURRENT_STABLE_CHANNEL }} channel
|
- name: Install ${{ env.CURRENT_STABLE_CHANNEL }} channel
|
||||||
run: |
|
run: |
|
||||||
nix-channel --add https://nixos.org/channels/${{ env.CURRENT_STABLE_CHANNEL }} nixpkgs
|
nix-channel --add https://nixos.org/channels/${{ env.CURRENT_STABLE_CHANNEL }} nixpkgs
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
- name: Install nix-darwin and test
|
- name: Install nix-darwin and test
|
||||||
run: |
|
run: |
|
||||||
export NIX_PATH=nixpkgs=channel:${{ env.CURRENT_STABLE_CHANNEL }}
|
export NIX_PATH=$HOME/.nix-defexpr/channels
|
||||||
|
|
||||||
# We run nix-darwin twice to test that it can create darwin-configuration correctly for us
|
# We run nix-darwin twice to test that it can create darwin-configuration correctly for us
|
||||||
# but we expect it to fail setting up /etc/nix/nix.conf
|
# but we expect it to fail setting up /etc/nix/nix.conf
|
||||||
|
@ -89,9 +84,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install nix from current unstable channel
|
- name: Install nix from current unstable channel
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v30
|
||||||
with:
|
with:
|
||||||
install_url: https://releases.nixos.org/nix/nix-2.24.6/install
|
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
|
||||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||||
- name: Install nixpkgs-unstable channel
|
- name: Install nixpkgs-unstable channel
|
||||||
run: |
|
run: |
|
||||||
|
@ -133,13 +128,10 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# We use the Determinate Systems installer for 2.18 because the
|
- name: Install nix version corresponding to latest stable channel
|
||||||
# Sequoia UID/GID changes have not yet been backported to the
|
uses: cachix/install-nix-action@v30
|
||||||
# official installer for that version.
|
|
||||||
- name: Install nix corresponding to latest stable channel
|
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
with:
|
with:
|
||||||
nix-package-url: https://releases.nixos.org/nix/nix-2.18.5/nix-2.18.5-x86_64-darwin.tar.xz
|
install_url: https://releases.nixos.org/nix/nix-2.18.8/install
|
||||||
- name: Install nix-darwin
|
- name: Install nix-darwin
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.config/nix-darwin
|
mkdir -p ~/.config/nix-darwin
|
||||||
|
@ -220,9 +212,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install nix from current unstable channel
|
- name: Install nix from current unstable channel
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v30
|
||||||
with:
|
with:
|
||||||
install_url: https://releases.nixos.org/nix/nix-2.24.6/install
|
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
|
||||||
- name: Install nix-darwin
|
- name: Install nix-darwin
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.config/nix-darwin
|
mkdir -p ~/.config/nix-darwin
|
||||||
|
|
2
.github/workflows/update-manual.yml
vendored
2
.github/workflows/update-manual.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v30
|
||||||
|
|
||||||
- name: Build manual
|
- name: Build manual
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue