summaryrefslogtreecommitdiff
path: root/.github/workflows/checks.yaml
blob: 882dd2a91d92057239decdeb897ab8f392c78558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 }}