Skip to content

Commit 785d626

Browse files
committed
Update GitHub Actions workflow: add permissions for contents and actions, disable dune cache, and initialize opam environment.
1 parent 300526f commit 785d626

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
type: boolean
1616
default: false
1717

18+
permissions:
19+
contents: read
20+
actions: read
21+
1822
jobs:
1923
build-macos:
2024
runs-on: macos-latest
@@ -24,7 +28,7 @@ jobs:
2428
uses: ocaml/setup-ocaml@v2
2529
with:
2630
ocaml-compiler: 5.3.0
27-
dune-cache: true
31+
dune-cache: false
2832
- name: Get version
2933
id: get_version
3034
run: |
@@ -69,6 +73,10 @@ jobs:
6973
else
7074
echo "VERSION=latest" >> $GITHUB_OUTPUT
7175
fi
76+
- name: Initialize opam
77+
run: |
78+
opam init --disable-sandboxing -y
79+
opam switch list
7280
- name: Install OCaml dependencies
7381
run: |
7482
eval $(opam env)

0 commit comments

Comments
 (0)