summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..054e4a3
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,38 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ paths:
+ - "**.nix"
+ - ".github/workflows/ci.yaml"
+ pull_request:
+ paths:
+ - "**.nix"
+ - ".github/workflows/ci.yaml"
+ workflow_dispatch:
+
+jobs:
+ build:
+ name: Build
+
+ strategy:
+ matrix:
+ include:
+ - os: ubuntu-latest
+ system: x86_64-linux
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@v30
+ with:
+ nix_path: nixpkgs=channel:nixos-unstable
+
+ - name: Run build
+ run: |
+ nix-build release.nix -A ${{ matrix.system }}