aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: 791c3f51eb284463de40241f5bc935afcd6d7ffa (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
name: CI

on:
  push:
    branches: [ master ]
    paths:
      - "**.v"
      - "**.ml"
      - "**.mli"
  pull_request:
    branches: [ master ]
    paths:
      - "**.v"
      - "**.ml"
      - "**.mli"
  workflow_dispatch

jobs:
  build:
    runs-on: ubuntu-latest

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

    - name: Install Nix
      uses: cachix/install-nix-action@v10

    - 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/