Skip to content

Commit a01b3c9

Browse files
committed
Update workflow
1 parent 72ea0b6 commit a01b3c9

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,36 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.ref }}
1114
cancel-in-progress: true
1215

1316
jobs:
1417
build:
18+
timeout-minutes: 30
1519
strategy:
1620
matrix:
1721
os:
1822
- ubuntu-latest
1923
ocaml-compiler:
2024
- 5
21-
- 4
25+
- 4 # latest OCaml 4 release
2226
- 4.11.0
2327

2428
runs-on: ${{ matrix.os }}
2529

2630
steps:
2731
- name: Checkout code
28-
uses: actions/checkout@v4
32+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2933

3034
- name: Use OCaml ${{ matrix.ocaml-compiler }}
31-
uses: ocaml/setup-ocaml@v3
35+
uses: ocaml/setup-ocaml@e32b06a3e831ff2fbc6f08cf35be2085e3918014 # v3
3236
with:
3337
ocaml-compiler: ${{ matrix.ocaml-compiler }}
38+
dune-cache: true
3439

3540
- name: Install system dependencies
3641
run: opam install conf-protoc --yes

0 commit comments

Comments
 (0)