Skip to content

Commit

Permalink
ci: update nixpkgs channel
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed May 15, 2024
1 parent 529d659 commit 2f46901
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
nixpkgs_channel: nixpkgs=channel:nixos-23.11

jobs:
simple-build:
strategy:
Expand All @@ -20,7 +23,7 @@ jobs:
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-22.11
nix_path: ${{ env.nixpkgs_channel }}
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
- run: cat /etc/nix/nix.conf
# cachix should be available and be able to configure a cache
Expand All @@ -41,8 +44,8 @@ jobs:
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-20.03
- run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03"
nix_path: ${{ env.nixpkgs_channel }}
- run: test $NIX_PATH == '${{ env.nixpkgs_channel }}'
- run: nix-build test.nix

extra-nix-config:
Expand All @@ -59,7 +62,7 @@ jobs:
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-22.11
nix_path: ${{ env.nixpkgs_channel }}
extra_nix_config: |
sandbox = relaxed
- run: cat /etc/nix/nix.conf
Expand Down Expand Up @@ -94,7 +97,7 @@ jobs:
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-22.11
nix_path: ${{ env.nixpkgs_channel }}
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
install_url: https://nixos-nix-install-tests.cachix.org/serve/s62m7lc0q0mz2mxxm9q0kkrcg90njzhq/install
- run: nix-build test.nix
Expand All @@ -113,7 +116,7 @@ jobs:
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-22.11
nix_path: ${{ env.nixpkgs_channel }}
install_url: https://releases.nixos.org/nix/nix-2.8.0/install
- run: nix-build test.nix

Expand Down

0 comments on commit 2f46901

Please sign in to comment.