ci: fix check job definition

This commit is contained in:
xeals 2023-02-23 11:00:54 +11:00
parent 3d8a9cfa9a
commit 2efddce7c5
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -13,13 +13,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: action/checkout@v3 uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19 - uses: cachix/install-nix-action@v19
- name: Check ${{ matrix.check }} - name: Check ${{ matrix.check }}
# Depends on nixos/nix#7759 to simply `nix flake check` # Depends on nixos/nix#7759 to simply `nix flake check`
run: run: nix run .#checks.$(nix eval --raw --impure --expr "builtins.currentSystem").${{ matrix.check }}
- export SYSTEM=$(nix eval --raw --impure --expr "builtins.currentSystem")
- nix run .#checks.$SYSTEM.${{ matrix.check }}
build-and-update: build-and-update:
strategy: strategy: