File: docker-action.yml

package info (click to toggle)
ott 0.34%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,440 kB
  • sloc: ml: 25,103; makefile: 1,375; awk: 736; lisp: 183; sh: 14; sed: 4
file content (50 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Docker CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        image:
          - 'coqorg/coq:dev'
      fail-fast: false
    steps:
      - uses: actions/checkout@v4
      - uses: coq-community/docker-coq-action@v1
        with:
          custom_image: ${{ matrix.image }}
          custom_script: |
            {{before_install}}
            startGroup "Build ott dependencies"
              opam pin add -n -y -k path ott .
              opam update -y
              opam install -y -j $(nproc) ott --deps-only
            endGroup
            startGroup "Build ott"
              opam install -y -v -j $(nproc) ott
              opam list
            endGroup
            startGroup "Build coq-ott dependencies"
              opam pin add -n -y -k path coq-ott .
              opam update -y
              opam install -y -j $(nproc) coq-ott --deps-only
            endGroup
            startGroup "Build coq-ott"
              opam install -y -v -j $(nproc) coq-ott
              opam list
            endGroup
            startGroup "Uninstallation test"
              opam remove -y coq-ott
              opam remove -y ott
            endGroup
          export: 'OPAMWITHTEST'
        env:
          OPAMWITHTEST: 'true'