Skip to content

Commit 8325ab4

Browse files
committed
CI: Build the default flake package in CI as well
1 parent eb2f90e commit 8325ab4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,28 @@ jobs:
77
tests:
88
strategy:
99
matrix:
10-
nixPath:
11-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz
12-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz
13-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-24.05.tar.gz
10+
nixRelease:
11+
- nixpkgs-unstable
12+
- nixos-unstable
13+
- nixos-24.05
1414
runs-on: ubuntu-latest
15+
env:
16+
nixPath: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/${{ matrix.nixRelease }}.tar.gz"
1517
steps:
1618
- name: Checkout repository
1719
uses: actions/checkout@v4
1820
- name: Install nix
1921
uses: cachix/install-nix-action@v29
2022
with:
21-
nix_path: "${{ matrix.nixPath }}"
23+
nix_path: "${{ env.nixPath }}"
2224
extra_nix_config: |
2325
experimental-features = nix-command flakes
2426
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2527
- name: Show nixpkgs version
2628
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
2729
- name: Run flake checks
2830
run: nix flake check
31+
- name: Build packages using flake
32+
run: nix build
2933
- name: Run standard metapackage test
3034
run: nix run '.#test.meta-standard'

0 commit comments

Comments
 (0)