|
1 | | -# This is a basic workflow to help you get started with Actions |
2 | | - |
| 1 | +# This is a workflow example relying on docker-coq-action |
3 | 2 | name: CI |
4 | 3 |
|
5 | | -# Controls when the action will run. |
6 | | -# cf. https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#filtering-for-specific-branches-tags-and-paths |
| 4 | +# Controls when the action will run: |
| 5 | +# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#filtering-for-specific-branches-tags-and-paths |
7 | 6 | # Triggers the workflow on push events or pull request events for the |
8 | 7 | # master branch only: |
9 | 8 | on: |
|
15 | 14 | - master |
16 | 15 |
|
17 | 16 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 17 | +# This workflow contains two jobs, build and mathcomp: |
18 | 18 | jobs: |
19 | | - # This workflow contains a single job called "build" |
20 | 19 | build: |
21 | 20 | # The type of runner that the job will run on; |
22 | 21 | # the OS must be GNU/Linux to be able to use the docker-coq-action |
23 | 22 | runs-on: ubuntu-latest |
24 | | - |
25 | 23 | strategy: |
26 | 24 | matrix: |
27 | 25 | coq_version: |
28 | 26 | - 8.11 |
29 | 27 | - dev |
30 | 28 | ocaml_version: ['4.07-flambda'] |
31 | | - # at most 20 concurrent jobs per free account |
32 | | - # cf. https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#usage-limits |
| 29 | + # at most 20 concurrent jobs per free account: |
| 30 | + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#usage-limits |
33 | 31 | max-parallel: 4 |
34 | 32 |
|
35 | 33 | # Steps represent a sequence of tasks that will be executed as part of the job |
36 | 34 | steps: |
37 | 35 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
38 | 36 | - uses: actions/checkout@v2 |
39 | | - |
40 | 37 | - uses: erikmd/docker-coq-action@master |
41 | | - id: docker-coq-action |
42 | 38 | with: |
43 | 39 | opam_file: 'coq-demo.opam' |
44 | 40 | coq_version: ${{ matrix.coq_version }} |
45 | 41 | ocaml_version: ${{ matrix.ocaml_version }} |
46 | | - custom_script: | |
47 | | - startGroup Test UID+GID |
48 | | - pwd |
49 | | - ls -hal |
50 | | - touch test || true |
51 | | - id |
52 | | - sudo chown -R coq:coq . |
53 | | - touch test |
54 | | - ls -hal |
55 | | - stat -c "UID=%u,GID=%g %n" $WORKDIR/$PACKAGE.opam |
56 | | - endGroup |
57 | | - startGroup Print opam config |
58 | | - opam config list; opam repo list; opam list |
59 | | - endGroup |
60 | | - startGroup Fetch dependencies |
61 | | - opam pin add -n -y -k path $PACKAGE $WORKDIR |
62 | | - opam update -y |
63 | | - endGroup |
64 | | - startGroup Build |
65 | | - opam install -y -v -j 2 $PACKAGE |
66 | | - opam list |
67 | | - endGroup |
68 | | - startGroup Uninstallation test |
69 | | - opam remove $PACKAGE |
70 | | - endGroup |
71 | 42 |
|
72 | 43 | mathcomp: |
73 | 44 | runs-on: ubuntu-latest |
|
82 | 53 | steps: |
83 | 54 | - uses: actions/checkout@v2 |
84 | 55 | - uses: erikmd/docker-coq-action@master |
85 | | - id: docker-mathcomp-action |
86 | 56 | with: |
87 | 57 | opam_file: './coq-demo.opam' |
88 | 58 | custom_image: ${{ matrix.image }} |
| 59 | + |
| 60 | +# Remark: |
| 61 | +# you may want to add the following badge to your README.md: |
| 62 | +# [](https://github.com/$USER/$REPO/actions?query=workflow%3ACI) |
| 63 | +# after replacing $USER/$REPO to use your project namespace; note also |
| 64 | +# that CI is the workflow name, defined at the beginning of this file. |
0 commit comments