Skip to content

Commit eb13f51

Browse files
committed
CI: add package build checks for all flake packages
Adds a 'packages' job to the Nix workflow that builds scip, speedtest, and proto-generate to catch build failures on PRs.
1 parent 9b172f9 commit eb13f51

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/nix-checks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ jobs:
2121
- uses: DeterminateSystems/nix-installer-action@v21
2222
- uses: DeterminateSystems/magic-nix-cache-action@v13
2323
- run: nix build .#checks.x86_64-linux.${{ matrix.check }}
24+
25+
packages:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
package:
30+
- scip
31+
- speedtest
32+
- proto-generate
33+
steps:
34+
- uses: actions/checkout@v6
35+
- uses: DeterminateSystems/nix-installer-action@v21
36+
- uses: DeterminateSystems/magic-nix-cache-action@v13
37+
- run: nix build .#${{ matrix.package }}

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
wrapProgram $out/bin/speedtest \
5959
--set SCIP_SAMPLE_INDEXES_DIR ${sampleIndexes}
6060
'';
61+
62+
meta.mainProgram = "speedtest";
6163
};
6264

6365
proto-generate =

0 commit comments

Comments
 (0)