Skip to content
Snippets Groups Projects
Commit 3e6e2902 authored by Lennard Gäher's avatar Lennard Gäher
Browse files

add ci

parent 30f3d2c2
No related branches found
No related tags found
No related merge requests found
image: registry.mpi-sws.org/gaeher/rust-ci
stages:
- build
variables:
# dune takes care of parallelization itself and does not like running in parallel
CPU_CORES: "1"
MAKE_TARGET: "all_with_examples"
OCAML: "ocaml-variants.4.14.0+options ocaml-option-flambda"
.template: &template
stage: build
tags:
- fp
script:
- git clone https://gitlab.mpi-sws.org/iris/ci.git ci -b opam2
- ci/buildjob
cache:
key: "$CI_JOB_NAME"
paths:
- _opam/
only:
- master@gaeher/refinedrust-dev
- /^ci/@gaeher/refinedrust-dev
- /^time/@gaeher/refinedrust-dev
except:
- triggers
- schedules
- api
## Build jobs
build-coq.8.17.0-timing:
<<: *template
variables:
OPAM_PINS: "coq version 8.17.0"
DENY_WARNINGS: "1"
OPAM_PKG: "1"
only:
- master@gaeher/refinedrust-dev
- /^time/@gaeher/refinedrust-dev
# timing only for master and time/ branches
tags:
- fp-timing
build-coq.8.17.0:
<<: *template
variables:
OPAM_PINS: "coq version 8.17.0"
DENY_WARNINGS: "1"
only:
- /^ci/@gaeher/refinedrust-dev
trigger-iris.dev:
<<: *template
variables:
STDPP_REPO: "iris/stdpp"
IRIS_REPO: "iris/iris"
OPAM_PINS: "coq version 8.17.0 git+https://gitlab.mpi-sws.org/$STDPP_REPO#$STDPP_REV coq-iris.dev git git+https://gitlab.mpi-sws.org/$IRIS_REPO#$IRIS_REV"
except:
only:
- triggers
- schedules
- api
...@@ -14,6 +14,29 @@ clean: ...@@ -14,6 +14,29 @@ clean:
@dune clean @dune clean
.PHONY: clean .PHONY: clean
frontend-setup:
cd rr_frontend && ./rustup-toolchain
frontend: frontend-setup
cd rr_frontend && ./refinedrust build
#RUST_SRC = $(wildcard rr_frontend/examples/*.rs)
RUST_SRC = rr_frontend/examples/paper.rs
%.rs.gen: %.rs phony
cd rr_frontend && ./refinedrust run ../$<
.PHONY: phony
generate_all: $(addsuffix .gen, $(RUST_SRC))
.PHONY: generate_all
check_generate_all: generate_all
git diff --exit-code
.PHONY: check_generate_all
all_with_examples: frontend generate_all
dune build --display short
builddep-opamfiles: builddep/refinedrust-builddep.opam builddep-opamfiles: builddep/refinedrust-builddep.opam
@true @true
.PHONY: builddep-opamfiles .PHONY: builddep-opamfiles
......
...@@ -2,4 +2,4 @@ dump_borrowck_info=false ...@@ -2,4 +2,4 @@ dump_borrowck_info=false
output_dir="./output" output_dir="./output"
log_dir = "./log" log_dir = "./log"
shims = "rr_shims.json" shims = "rr_shims.json"
run_check = true run_check = false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment