-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try container-based CI * Try fix CI * Update README accordingly * Update environment * Use the correct name * Fix permission issue * Remove pre-done part from CI * Update Dockerfile
- Loading branch information
Showing
4 changed files
with
78 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM coqorg/coq:8.17.1 | ||
FROM coqorg/coq:8.17.1-ocaml-4.14.1-flambda | ||
|
||
ENV NCPUS=4 | ||
ENV OPAMYES="true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: CI build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
REGISTRY: "ghcr.io" | ||
IMAGE_TAG: "beluga-lang/mcltt:main" | ||
|
||
jobs: | ||
wf: | ||
name: Completeness of _CoqProject | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: repo checkout | ||
uses: actions/checkout@v3 | ||
- name: check | ||
run: | | ||
.github/scripts/check_projects.sh theories | ||
build: | ||
name: Continuous Intergration | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: read | ||
steps: | ||
- name: get number of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v2 | ||
id: cpu-cores | ||
|
||
- name: repo checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: container registry log in | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: image pre-pulling | ||
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_TAG }} | ||
|
||
- name: coq processing | ||
uses: coq-community/docker-coq-action@v1 | ||
with: | ||
custom_image: ${{ env.REGISTRY }}/${{ env.IMAGE_TAG }} | ||
install: | | ||
before_script: | | ||
startGroup "Fix the permission issue" | ||
sudo chown -R coq:coq . | ||
endGroup | ||
script: | | ||
startGroup "Build Coq lib" | ||
cd theories/ | ||
make -j ${{ steps.cpu-cores.outputs.count }} pretty-timed | ||
endGroup | ||
after_script: | | ||
startGroup "Test parser" | ||
dune build | ||
dune runtest | ||
endGroup | ||
export: "OPAMJOBS OPAMYES" | ||
env: | ||
OPAMJOBS: ${{ steps.cpu-cores.outputs.count }} | ||
OPAMYES: "true" | ||
|
||
- name: permissions revert | ||
# to avoid a warning at cleanup time | ||
if: ${{ always() }} | ||
run: sudo chown -R 1001:116 . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters