浏览代码

ci: faster flake checks... maybe?

Signed-off-by: Christina Sørensen <ces@fem.gg>
Christina Sørensen 1 年之前
父节点
当前提交
3a34ee98a1
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/unit-tests.yml

+ 5 - 1
.github/workflows/unit-tests.yml

@@ -64,6 +64,10 @@ jobs:
     needs: conventional
     name: Check Nix Flake
     runs-on: ubuntu-22.04
+    strategy:
+      matrix:
+        checks: [build, formatting, lint, pre-commit-check, test, trycmd]
+        target: [x86_64-linux]
     steps:
       - uses: actions/checkout@v4
       - name: Install Nix
@@ -71,7 +75,7 @@ jobs:
       - name: Setup Nix cache
         uses: DeterminateSystems/magic-nix-cache-action@main
       - name: Nix Flake Check
-        run: nix flake check --all-systems -L
+        run: nix build .#packages.${{ matrix.target }}.${{ matrix.checks }} -L
 
   flake-build:
     needs: conventional