summaryrefslogtreecommitdiff
path: root/.github/workflows/checks.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/checks.yaml')
-rw-r--r--.github/workflows/checks.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml
new file mode 100644
index 0000000..882dd2a
--- /dev/null
+++ b/.github/workflows/checks.yaml
@@ -0,0 +1,27 @@
+name: Checks
+
+on: [push]
+
+concurrency:
+ group: '${{ github.ref_name }}-checks'
+ cancel-in-progress: true
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ compiler: [ gcc, clang ]
+
+ name: Build dged with ${{ matrix.compiler }}
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@v26
+ with:
+ install_url: https://releases.nixos.org/nix/nix-2.18.1/install
+
+ - name: Build
+ run: nix build -L .#${{ matrix.compiler }}