Skip to content

Commit fda4596

Browse files
SomeoneSergepull[bot]
authored andcommitted
workflows: nix-ci: add a job for eval
1 parent 9cda654 commit fda4596

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/nix-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ on:
1111
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', '**/*.sh', '**/*.py', '**/*.nix']
1212

1313
jobs:
14+
nix-eval:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ ubuntu-latest, macos-latest ]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
- name: Install Nix
24+
uses: DeterminateSystems/nix-installer-action@v9
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
extra-conf: |
28+
extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org
29+
extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
30+
- uses: DeterminateSystems/magic-nix-cache-action@v2
31+
with:
32+
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
33+
- name: List all flake outputs
34+
run: nix flake show --all-systems
35+
- name: Show all output paths
36+
run: >
37+
nix run github:nix-community/nix-eval-jobs
38+
-- --gc-roots-dir gcroot
39+
--flake
40+
".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
1441
nix-build:
1542
if: ${{ vars.CACHIX_NAME != '' }}
1643
strategy:

0 commit comments

Comments
 (0)