aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: a4a954cc7f50edf54be91e614437b0c5473e09b6 (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
28
29
30
31
32
33
34
35
36
37
38
name: CI

on:
  push:
    branches: [ master ]
    paths:
      - "**.v"
      - "**.ml"
      - "**.mli"
      - "**.yml"
      - "*.nix"
      - Makefile
  pull_request:
    branches: [ master ]
    paths:
      - "**.v"
      - "**.ml"
      - "**.mli"
      - "**.yml"
      - "*.nix"
      - Makefile
  workflow_dispatch: {}

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      with:
        submodules: true

    - uses: cachix/install-nix-action@v12
      with:
        nix_path: nixpkgs=channel:nixos-unstable

    - name: Build
      run: nix-shell --run "make -j8"