-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (34 loc) · 1011 Bytes
/
compile.yml
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y opam zlib1g-dev pkg-config libgmp-dev z3 cvc4
- name: Init opam
run: opam init -y
- name: Install sail
run: opam install -y sail
- name: Check out repository code
uses: actions/checkout@HEAD
with:
submodules: true
- name: Build simulators
run: |
# fake committer details to satisfy git am
git config --global user.name "No One"
git config --global user.email "[email protected]"
make patch_sail_riscv
eval $(opam env) && make csim
mkdir install
cp c_emulator/cheriot_sim install
cp LICENSE install/LICENCE-cheriot-sail
cp sail-riscv/LICENCE install/LICENCE-sail-riscv
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: cheriot_sim
path: install/