Skip to content

Commit eb2f90e

Browse files
committed
CI: Use shorter labels so we can see which build failed
Otherwise it's really hard to tell whether the failing build is nixpkgs-unstable or nixos-unstable or nixos-24.05.
1 parent 2336aad commit eb2f90e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
tests:
1515
strategy:
16+
# If one nixpkgs fails, we'd like to see which other ones do too
17+
fail-fast: false
1618
matrix:
1719
# Set this to notify the global nur package registry that changes are
1820
# available.
@@ -33,18 +35,20 @@ jobs:
3335
# https://github.com/<your_githubname>/nur-packages/settings/secrets
3436
cachixName:
3537
- nixathena
36-
nixPath:
37-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz
38-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz
39-
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-24.05.tar.gz
38+
nixRelease:
39+
- nixpkgs-unstable
40+
- nixos-unstable
41+
- nixos-24.05
4042
runs-on: ubuntu-latest
43+
env:
44+
nixPath: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/${{ matrix.nixRelease }}.tar.gz"
4145
steps:
4246
- name: Checkout repository
4347
uses: actions/checkout@v4
4448
- name: Install nix
4549
uses: cachix/install-nix-action@v29
4650
with:
47-
nix_path: "${{ matrix.nixPath }}"
51+
nix_path: "${{ env.nixPath }}"
4852
extra_nix_config: |
4953
experimental-features = nix-command flakes
5054
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)