Skip to content

Commit cb9275b

Browse files
authored
Merge pull request #1 from formal-land/guillaume-claret@add-ci-file
Add CI file
2 parents 406c6bd + 6808f61 commit cb9275b

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Download Git submodules
20+
run: git submodule update --init --recursive
21+
- uses: coq-community/docker-coq-action@v1
22+
with:
23+
custom_image: coqorg/coq:8.20-ocaml-4.14-flambda
24+
custom_script: |
25+
startGroup "Build"
26+
sudo chown -R $(whoami) .
27+
make
28+
endGroup

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ time-of-build-after.log
4343
time-of-build-before.log
4444
time-of-build-both.log
4545
time-of-build-pretty.log
46+
47+
# additional files
48+
CoqMakefile
49+
CoqMakefile.conf

Makefile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.PHONY: default all clean clean-util distclean
2+
3+
VFILES := $(shell find -L . -name "*.v" | sort)
4+
5+
default: all
6+
7+
# We use the '@' to avoid displaying this command as the parameters list is
8+
# very long.
9+
CoqMakefile: $(VFILES)
10+
@coq_makefile -f _CoqProject -o $@ $(VFILES)
11+
12+
MAKECOQ := +$(MAKE) -f CoqMakefile
13+
14+
%.vo: CoqMakefile %.v
15+
$(MAKECOQ) $@
16+
17+
all: CoqMakefile
18+
$(MAKECOQ) all
19+
20+
clean-coq: CoqMakefile
21+
$(MAKECOQ) clean
22+
23+
clean-util:
24+
rm -f *CoqMakefile*
25+
26+
clean: clean-coq
27+
$(MAKE) clean-util # done separately to enforce order
28+
29+
distclean: clean

0 commit comments

Comments
 (0)