|
| 1 | +name: CI (Coq, docker, dev) |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ sp2019latest ] |
| 6 | + pull_request: |
| 7 | + workflow_dispatch: |
| 8 | + schedule: |
| 9 | + - cron: '0 0 1 * *' |
| 10 | + |
| 11 | +jobs: |
| 12 | + docker-build: |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + include: |
| 17 | + - env: { COQ_VERSION: "master", DOCKER_COQ_VERSION: "dev", DOCKER_OCAML_VERSION: "default", SKIP_DISPLAY_TEST: "1", CC: "gcc", ALLOW_DIFF: "" } |
| 18 | + os: 'ubuntu-latest' |
| 19 | + |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + env: ${{ matrix.env }} |
| 22 | + name: ${{ matrix.env.COQ_VERSION }} |
| 23 | + |
| 24 | + concurrency: |
| 25 | + group: ${{ github.workflow }}-${{ matrix.env.COQ_VERSION }}-${{ github.head_ref || github.run_id }} |
| 26 | + cancel-in-progress: true |
| 27 | + |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + with: |
| 31 | + submodules: recursive |
| 32 | + - name: echo host build params |
| 33 | + run: etc/ci/describe-system-config.sh |
| 34 | + - name: echo container build params |
| 35 | + uses: coq-community/docker-coq-action@v1 |
| 36 | + with: |
| 37 | + coq_version: ${{ matrix.env.DOCKER_COQ_VERSION }} |
| 38 | + ocaml_version: ${{ matrix.env.DOCKER_OCAML_VERSION }} |
| 39 | + export: CI ALLOW_DIFF SKUP_DISPLAY_TEST CC |
| 40 | + custom_script: | |
| 41 | + eval $(opam env) |
| 42 | + etc/ci/describe-system-config.sh |
| 43 | + - name: remove autogenerated |
| 44 | + run: etc/ci/remove_autogenerated.sh |
| 45 | + - name: build |
| 46 | + uses: coq-community/docker-coq-action@v1 |
| 47 | + with: |
| 48 | + coq_version: ${{ matrix.env.DOCKER_COQ_VERSION }} |
| 49 | + ocaml_version: ${{ matrix.env.DOCKER_OCAML_VERSION }} |
| 50 | + export: CI ALLOW_DIFF SKUP_DISPLAY_TEST CC |
| 51 | + custom_script: | |
| 52 | + startGroup 'install gcc' |
| 53 | + sudo apt-get update -q |
| 54 | + sudo apt-get install g++-7 libssl-dev -y --allow-unauthenticated |
| 55 | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 |
| 56 | + endGroup |
| 57 | + startGroup 'some-early util' |
| 58 | + etc/ci/github-actions-docker-make.sh -j2 some-early util |
| 59 | + endGroup |
| 60 | + startGroup 'printlite lite' |
| 61 | + etc/ci/github-actions-docker-make.sh -j2 printlite lite |
| 62 | + endGroup |
| 63 | + startGroup no-curves-proofs-non-specific |
| 64 | + etc/ci/github-actions-docker-make.sh -j2 no-curves-proofs-non-specific |
| 65 | + endGroup |
| 66 | + startGroup curves-proofs |
| 67 | + etc/ci/github-actions-docker-make.sh -j2 curves-proofs |
| 68 | + endGroup |
| 69 | + startGroup selected-specific selected-specific-display |
| 70 | + ALLOW_DIFF="${SKIP_DISPLAY_TEST}" etc/ci/github-actions-docker-make.sh -j2 selected-specific selected-specific-display |
| 71 | + endGroup |
| 72 | + #startGroup selected-specific-display-test |
| 73 | + #etc/ci/github-actions-docker-make.sh -j2 selected-specific-display-test |
| 74 | + #endGroup |
| 75 | + #if: env.SKIP_DISPLAY_TEST != '1' |
| 76 | + #startGroup build-selected-test build-selected-bench |
| 77 | + #etc/ci/github-actions-docker-make.sh -j2 build-selected-test build-selected-bench |
| 78 | + #endGroup |
| 79 | + #if: env.SKIP_DISPLAY_TEST != '1' |
| 80 | + #startGroup test for adx |
| 81 | + #etc/assert-adx.sh || true |
| 82 | + #endGroup |
| 83 | + #continue-on-error: true |
| 84 | + #if: env.SKIP_DISPLAY_TEST != '1' |
| 85 | + #startGroup selected-test selected-bench |
| 86 | + #ALLOW_DIFF=1 SKIP_ICC="$(etc/assert-adx.sh || echo 1)" etc/ci/github-actions-docker-make.sh -j2 selected-test selected-bench |
| 87 | + #endGroup |
| 88 | + #if: env.SKIP_DISPLAY_TEST != '1' |
0 commit comments