Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,34 @@ env:
JOBS: 4
jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4

- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{env.OCAML_COMILER_VERSION}}
opam-repositories: |
coq-released: https://coq.inria.fr/opam/released
default: https://opam.ocaml.org
opam-pin: false

- run: sudo apt-get update
- name: Restore opam cache
id: opam-cache
uses: actions/cache@v4
with:
path: "~/.opam"
path: ${{github.workspace}}/_opam
key: opam-${{env.OCAML_COMILER_VERSION}}-${{hashFiles('.github/coq-concert.opam.locked')}}
restore-keys: |
opam-${{env.OCAML_COMILER_VERSION}}-

- name: Set up OCaml
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{env.OCAML_COMILER_VERSION}}

- name: Build dependencies
#if: ${{ !steps.opam-cache.outputs.cache-hit }}
run: |
opam repo add coq-released https://coq.inria.fr/opam/released
opam install --deps-only -j${{ env.JOBS }} .github/coq-concert.opam.locked
opam install -y -j${{ env.JOBS }} coq-dpdgraph
opam clean -a -c -s --logs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint-opam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
env:
OCAML_COMILER_VERSION: "4.14.2"
JOBS: 4
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -18,10 +21,11 @@ jobs:
- name: Set up opam
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.x
ocaml-compiler: ${{env.OCAML_COMILER_VERSION}}
opam-repositories: |
coq-released: https://coq.inria.fr/opam/released
default: https://opam.ocaml.org
opam-pin: false
- name: Set up problem matcher
run: echo "::add-matcher::./.github/opam-errors.json"
- name: Lint opam file
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/refresh-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ permissions:
contents: read
env:
OCAML_COMILER_VERSION: "4.14.2"
JOBS: 4
jobs:
cache:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
Expand All @@ -22,14 +23,18 @@ jobs:
id: opam-cache
uses: actions/cache@v4
with:
path: "~/.opam"
path: ${{github.workspace}}/_opam
fail-on-cache-miss: true
key: opam-${{env.OCAML_COMILER_VERSION}}-${{hashFiles('.github/coq-concert.opam.locked')}}
restore-keys: |
opam-${{env.OCAML_COMILER_VERSION}}-

- name: Set up OCaml
uses: avsm/setup-ocaml@v1
uses: ocaml/setup-ocaml@v3
with:
ocaml-version: ${{env.OCAML_COMILER_VERSION}}
ocaml-compiler: ${{env.OCAML_COMILER_VERSION}}
opam-repositories: |
coq-released: https://coq.inria.fr/opam/released
default: https://opam.ocaml.org
opam-pin: false
- run: opam list
Loading