aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: cacf7fac64f198fe94574be98cbe1edfda15f1c6 (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
39
40
41
42
43
44
45
46
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"

    - name: Generate Documentation
      run: nix-shell --run "make -j8 doc"

    - uses: actions/upload-artifact@v2
      with:
        name: html-documentation
        path: html/