Skip to content

Commit 72600e6

Browse files
committed
try update CI actions
1 parent 36b1446 commit 72600e6

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,29 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99

10-
- name: Try to restore opam cache
11-
id: opam-cache
12-
uses: actions/cache@v2
13-
with:
14-
path: "~/.opam"
15-
key: opamdir-${{github.base_ref}}-${{github.ref}}
16-
restore-keys: |
17-
opamdir--refs/heads/${{github.base_ref}}
18-
19-
- name: Install OCaml
20-
uses: avsm/setup-ocaml@v1
21-
with:
22-
ocaml-version: 4.11.0
10+
# - name: Try to restore opam cache
11+
# id: opam-cache
12+
# uses: actions/cache@v4
13+
# with:
14+
# path: "~/.opam"
15+
# key: opamdir-${{github.base_ref}}-${{github.ref}}
16+
# restore-keys: |
17+
# opamdir--refs/heads/${{github.base_ref}}
2318

2419
- name: Checkout code
25-
uses: actions/checkout@v2
20+
uses: actions/checkout@v5
2621
with:
2722
fetch-depth: 1
2823

29-
- run: opam repo add coq-released https://coq.inria.fr/opam/released
30-
- run: opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
31-
- run: opam update
24+
- name: Install OCaml
25+
uses: ocaml/setup-ocaml@v3
26+
with:
27+
ocaml-compiler: 4.11.0
28+
opam-disable-sandboxing: true
29+
opam-repositories:
30+
default: https://github.com/ocaml/opam-repository.git
31+
coq-released: https://coq.inria.fr/opam/released
32+
coq-extra-dev: https://coq.inria.fr/opam/extra-dev
3233

3334
- run: opam install . --deps-only --with-doc --with-test
3435

0 commit comments

Comments
 (0)