summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: db63f8e3d444cf9482fc0471d0bc238399310ffe (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
on:
  push:
    branches-ignore: [ '_**' ]
  pull_request:
  workflow_dispatch:

jobs:
  nix:
    #runs-on: ubuntu-latest
    runs-on: [self-hosted, linux, nix]
    steps:
      #- uses: cachix/install-nix-action@v22
      - uses: actions/checkout@v4
      - run: nix build -L .#aeneas
      - run: nix build -L .#checks.x86_64-linux.aeneas-tests
      - run: nix build -L .#checks.x86_64-linux.aeneas-verify-fstar
      - run: nix build -L .#checks.x86_64-linux.aeneas-verify-coq
      # HOL4 can be reactivated, but it is very slow
      #- run: nix build -L .#checks.x86_64-linux.aeneas-verify-hol4
      # Lean doesn't work with Nix
      #- run: nix build -L .#checks.x86_64-linux.aeneas-verify-lean
  lean: # Lean isn't supported by Nix, so we need to add extra steps
    runs-on: [ubuntu-latest]
    steps:
      - run: ls
      #- run: wget -q https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_debian.sh && bash install_debian.sh ; rm -f install_debian.sh && source ~/.profile
      # Install curl
      - run: sudo apt update && sudo apt install curl
      # Install Elan (https://leanprover-community.github.io/install/linux.html)
      #- run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
      - run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | bash -s -- -y
      #- run: sudo apt-get update && sudo apt-get install make
      # Verify
      - run: cd tests/lean && make
      #- run: cd tests/lean && lake build