Skip to content

Commit

Permalink
.github/workflows/ci: run on nix
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jun 23, 2024
1 parent abe9c32 commit 571cb83
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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:
Expand All @@ -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 \
Expand Down

0 comments on commit 571cb83

Please sign in to comment.