Skip to content

Commit bad98c6

Browse files
authored
chore: Use setup-ocaml@v3 (#112)
feat: Support OCaml 5 chore!: Drop support for OCaml 4.12
1 parent 5a7a21d commit bad98c6

File tree

33 files changed

+536
-1028
lines changed

33 files changed

+536
-1028
lines changed

.github/workflows/esy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Setup node.js
18-
uses: actions/setup-node@v3.6.0
18+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1919
with:
2020
node-version: "16"
2121
check-latest: true
@@ -28,7 +28,7 @@ jobs:
2828
npm i -g shx
2929
3030
- name: Checkout project
31-
uses: actions/checkout@v3.5.3
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
submodules: "recursive"
3434

@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Esy cache
4040
id: esy-cache
41-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
41+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4242
with:
4343
path: _export
4444
key: ${{ runner.os }}-esy-${{ hashFiles('esy.lock/index.json') }}

.github/workflows/js.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Setup node.js
14-
uses: actions/setup-node@v3.6.0
14+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1515
with:
1616
node-version: "16"
1717
check-latest: true
@@ -31,7 +31,7 @@ jobs:
3131
echo "$HOME/cmake/bin" >> $GITHUB_PATH
3232
3333
- name: Checkout project
34-
uses: actions/checkout@v3.5.3
34+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
with:
3636
submodules: "recursive"
3737

.github/workflows/opam.yml

+6-16
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,17 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-22.04, macos-latest, windows-latest]
15-
ocaml-compiler: [4.12.1, 4.13.1, 4.14.1]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
ocaml-compiler: [4.13.1, 4.14.1, 5.3.0]
1616

1717
steps:
1818
- name: Checkout project
19-
uses: actions/checkout@v3.5.3
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
with:
2121
submodules: "recursive"
2222

2323
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
24-
uses: ocaml/setup-ocaml@v2
25-
if: ${{ startsWith(matrix.os, 'windows-') }}
26-
with:
27-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
28-
opam-repositories: |
29-
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
30-
default: https://github.com/ocaml/opam-repository.git
31-
32-
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
33-
uses: ocaml/setup-ocaml@v2
34-
if: ${{ !startsWith(matrix.os, 'windows-') }}
24+
uses: ocaml/setup-ocaml@c2e6bb92370612b89f302c3aaefa1da45ee2d702 # v3.2.15
3525
with:
3626
ocaml-compiler: ${{ matrix.ocaml-compiler }}
3727

@@ -71,12 +61,12 @@ jobs:
7161
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
7262
7363
- name: Checkout project
74-
uses: actions/checkout@v3.5.3
64+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7565
with:
7666
submodules: "recursive"
7767

7868
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
79-
uses: ocaml/setup-ocaml@v2
69+
uses: ocaml/setup-ocaml@c2e6bb92370612b89f302c3aaefa1da45ee2d702 # v3.2.15
8070
with:
8171
ocaml-compiler: ${{ matrix.ocaml-compiler }}
8272

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
brew install git-archive-all
3535
3636
- name: Checkout code
37-
uses: actions/checkout@v3.5.3
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838
with:
3939
submodules: "recursive"
4040

@@ -82,7 +82,7 @@ jobs:
8282
echo -n "$CHANGES" > CHANGES.md
8383
8484
- name: Setup OCaml
85-
uses: ocaml/setup-ocaml@v2
85+
uses: ocaml/setup-ocaml@c2e6bb92370612b89f302c3aaefa1da45ee2d702 # v3.2.15
8686
with:
8787
ocaml-compiler: 4.14.0
8888

@@ -100,7 +100,7 @@ jobs:
100100
runs-on: ubuntu-22.04
101101
steps:
102102
- name: Setup NodeJS
103-
uses: actions/setup-node@v3.6.0
103+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
104104
with:
105105
node-version: "16"
106106
registry-url: "https://registry.npmjs.org"

dune

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
binaryen
126126
-G
127127
"Unix Makefiles"
128+
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc
129+
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
128130
"-DCMAKE_SYSTEM_NAME=Windows"
129131
; GCC 7 (shipped with esy) doesn't like _ for unused variables
130132
"-DCMAKE_CXX_FLAGS=-Wno-unused-variable -Wno-maybe-uninitialized"

0 commit comments

Comments
 (0)