Skip to content

Commit c28d37f

Browse files
authored
Build the theories in CI (#2)
1 parent eb10780 commit c28d37f

File tree

4 files changed

+150
-96
lines changed

4 files changed

+150
-96
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
7+
jobs:
8+
build:
9+
name: build
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v2
14+
15+
- name: Setup buildx
16+
uses: crazy-max/ghaction-docker-buildx@v3
17+
18+
- name: Cache docker layers
19+
uses: actions/cache@v1
20+
with:
21+
path: /tmp/docker-cache
22+
key: docker-cache-${{ hashFiles('Dockerfile') }}-1
23+
restore-keys: |
24+
docker-cache-
25+
26+
- name: Build Nominal Isabelle
27+
run: |
28+
docker buildx build \
29+
--cache-from "type=local,src=/tmp/docker-cache" \
30+
--cache-to "type=local,dest=/tmp/docker-cache,mode=max" \
31+
--output "type=docker" \
32+
--tag isabelle_nominal:latest .
33+
34+
- name: Run theories
35+
run: docker run isabelle_nominal build -d . Lambda

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM makarius/isabelle:Isabelle2020
2+
3+
RUN for t in Nominal2 FinFun; do \
4+
curl https://www.isa-afp.org/release/afp-$t-current.tar.gz -o $t.tar.gz ; \
5+
cd Isabelle/src/ ; \
6+
tar -xzf ../../$t.tar.gz ; \
7+
cd .. ; \
8+
echo "src/$t" >> ROOTS ; \
9+
cd .. ; \
10+
rm $t.tar.gz ; \
11+
done
12+
13+
RUN ./Isabelle/bin/isabelle build -o system_heaps -b Nominal2
14+
15+
COPY ROOT Defs.thy Soundness.thy ./

ROOT

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
session Lambda = HOL + sessions "HOL-Eisbach" Nominal2
2+
theories
3+
Defs
4+
Soundness

0 commit comments

Comments
 (0)