From 50efe552952a049cb72a79a4b69d903c3dbdab85 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 13 Apr 2024 01:37:31 +0200 Subject: [PATCH] .github/workflows/ci: run on nix --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 866c471c..84d8b909 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,12 +6,11 @@ on: jobs: eval: - runs-on: ubuntu-latest + runs-on: nix outputs: matrix: ${{ steps.eval-jobs.outputs.matrix }} steps: - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v25 - name: Evaluate checks id: eval-jobs run: | @@ -77,7 +76,7 @@ jobs: - check: firecracker-overlay-systemd-startup-shutdown - check: qemu-overlay-startup-shutdown - check: qemu-overlay-systemd-startup-shutdown - runs-on: ubuntu-latest + runs-on: nix env: NIX_ATTR: 'checks.x86_64-linux.${{ matrix.check }}' steps: @@ -87,8 +86,6 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v25 - - uses: DeterminateSystems/magic-nix-cache-action@v3 - name: Build ${{ matrix.check }} run: | nix build \