aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/compile.yml
blob: 8ef4ca8a3004ef792cd4f3d72ef7873937c8a4e2 (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
name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: [ubuntu-18.04]
    steps:
    - name: Add opam2 PPA
      run: sudo add-apt-repository -y ppa:avsm/ppa
    - name: Install packages
      run: sudo apt install -y opam zlib1g-dev pkg-config libgmp-dev z3 device-tree-compiler
    - name: Init opam
      run: opam init --disable-sandboxing -y
    - name: Install sail
      run: opam install -y sail
    - name: Check out repository code
      uses: actions/checkout@HEAD
      with:
        submodules: true
    - name: Build and test simulators
      run: eval $(opam env) && test/run_tests.sh
    - name: Upload test results
      if: always()
      uses: actions/upload-artifact@v2
      with:
        name: tests.xml
        path: test/tests.xml
    - name: Upload event payload
      if: always()
      uses: actions/upload-artifact@v2
      with:
        name: event.json
        path: ${{ github.event_path }}