summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-12-30 17:19:11 +0000
committerPhilip Taron <philip.taron@gmail.com>2023-12-31 13:14:58 -0800
commit1e9ae54cf24d27afe3900d1250634a2a33423db1 (patch)
tree4f28ccef0e20ee25068851ae76c7c12e1dbaae3a
parent7adedecbe39bd552bc14142f496246d55a43ac4e (diff)
workflows: nix-ci: add a job for eval
-rw-r--r--.github/workflows/nix-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml
index f82b2cb3..845b93bf 100644
--- a/.github/workflows/nix-ci.yml
+++ b/.github/workflows/nix-ci.yml
@@ -11,6 +11,33 @@ on:
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', '**/*.sh', '**/*.py', '**/*.nix']
jobs:
+ nix-eval:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ ubuntu-latest, macos-latest ]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v9
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ extra-conf: |
+ extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org
+ extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
+ - uses: DeterminateSystems/magic-nix-cache-action@v2
+ with:
+ upstream-cache: https://${{ matrix.cachixName }}.cachix.org
+ - name: List all flake outputs
+ run: nix flake show --all-systems
+ - name: Show all output paths
+ run: >
+ nix run github:nix-community/nix-eval-jobs
+ -- --gc-roots-dir gcroot
+ --flake
+ ".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
nix-build:
if: ${{ vars.CACHIX_NAME != '' }}
strategy: