-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (57 loc) · 1.55 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: [ubuntu-24.04]
container: ghcr.io/cheriot-platform/sail-latex:latest
steps:
- name: Check out repository code
uses: actions/checkout@HEAD
with:
submodules: true
- name: Build simulators
run: |
export HOME=/root/
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: Build arch doc
run: |
export HOME=/root/
eval $(opam env) && make -C archdoc
cp archdoc/cheriot-architecture.pdf install
mkdir -p _site/
cp archdoc/cheriot-architecture.pdf _site/
- name: Upload simulator artifact
uses: actions/upload-artifact@v4
with:
name: cheriot_sim
path: install/
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
deploy:
# Run only when landing, not as part of a PR
if: ${{ github.event_name == 'push' }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: [ubuntu-24.04]
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2