From ced544890ab9915f9b7fd477616e6d1f665e8a4c Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Mon, 8 Apr 2024 10:57:01 +0200 Subject: Github CI --- .github/workflows/checks.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/checks.yaml (limited to '.github/workflows/checks.yaml') 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 }} -- cgit v1.2.3