Skip to content

Commit 1a107c1

Browse files
committed
Use the sail container for builds (hopefully faster)!
1 parent c2d298f commit 1a107c1

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/compile.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,24 @@ concurrency:
1313

1414
jobs:
1515
build:
16-
runs-on: [ubuntu-20.04]
16+
runs-on: [ubuntu-24.04]
17+
container: ghcr.io/cheriot-platform/sail-latex:latest
1718
steps:
18-
- name: Install dependencies
19-
run: |
20-
sudo apt update
21-
sudo apt install -y --no-install-recommends opam zlib1g-dev pkg-config libgmp-dev z3 cvc4 texlive-plain-generic texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-science texlive-fonts-recommended texlive-fonts-extra texlive-bibtex-extra texlive-extra-utils latexmk
22-
- name: Init opam
23-
run: opam init -y
24-
- name: Install sail
25-
run: git clone -n https://github.com/rems-project/sail.git && cd sail && git checkout bb50f71dced35cd199554f0360a93b934e6443a1 && opam install -y .
2619
- name: Check out repository code
2720
uses: actions/checkout@HEAD
2821
with:
2922
submodules: true
3023
- name: Build simulators
3124
run: |
25+
export HOME=/root/
3226
eval $(opam env) && make csim
3327
mkdir install
3428
cp c_emulator/cheriot_sim install
3529
cp LICENSE install/LICENCE-cheriot-sail
3630
cp sail-riscv/LICENCE install/LICENCE-sail-riscv
3731
- name: Build arch doc
3832
run: |
33+
export HOME=/root/
3934
eval $(opam env) && make -C archdoc
4035
cp archdoc/cheriot-architecture.pdf install
4136
mkdir -p _site/
@@ -61,7 +56,7 @@ jobs:
6156
environment:
6257
name: github-pages
6358
url: ${{ steps.deployment.outputs.page_url }}
64-
runs-on: [ubuntu-20.04]
59+
runs-on: [ubuntu-24.04]
6560
needs: build
6661
steps:
6762
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)