Skip to content

Commit

Permalink
ci: split nix ci from main ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Nov 2, 2024
1 parent 90bd852 commit 442056f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,6 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Run clippy
run: cargo clippy
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt-get update -y
sudo apt-get install -y qemu-kvm
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
# Build and test tracexec
# Also builds kernels
- run: nix build
# Run Userspace<->Kernel CI
- run: nix run '.#ukci'
check_and_test:
strategy:
fail-fast: false
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration (Nix)

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:

# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt-get update -y
sudo apt-get install -y qemu-kvm
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
# Build and test tracexec
# Also builds kernels
- run: nix build
# Run Userspace<->Kernel CI
- run: nix run '.#ukci'

0 comments on commit 442056f

Please sign in to comment.