File tree Expand file tree Collapse file tree 2 files changed +36
-55
lines changed Expand file tree Collapse file tree 2 files changed +36
-55
lines changed Original file line number Diff line number Diff line change @@ -2,50 +2,50 @@ name: CI
22
33on :
44 push :
5- branches : [main,v2]
5+ branches :
6+ - main
7+ - v2
68 pull_request :
7- branches : [main,v2]
9+ branches :
10+ - main
11+ - v2
812 workflow_dispatch :
913
1014jobs :
1115 build-jsoo :
1216 strategy :
1317 fail-fast : false
1418 matrix :
15- os :
16- - ubuntu-latest
17- dotnet :
18- - 6.0.x
19- node-version :
20- - 20.x
2119 ocaml-compiler :
22- - 4.08.x
23- - 4.12.x
24- - 4.14.x
25- - 5.0.x
20+ - " 4.08"
21+ - " 4.12"
22+ - " 4.14"
23+ - " 5.0"
24+ - " 5.1"
2625
27- runs-on : ${{ matrix.os }}
26+ runs-on : ubuntu-latest
2827
2928 steps :
3029 - name : Checkout code
3130 uses : actions/checkout@v4
3231
33- - name : Use .NET ${{ matrix.dotnet }}
32+ - name : Set-up .NET
3433 uses : actions/setup-dotnet@v4
3534 with :
36- dotnet-version : ${{ matrix.dotnet }}
35+ dotnet-version : 6.0.x
3736
38- - name : Use Node.js ${{ matrix.node-version }}
37+ - name : Set-up Node.js
3938 uses : actions/setup-node@v4
4039 with :
41- node-version : ${{ matrix.node-version }}
40+ node-version : 22
4241 cache : yarn
4342
44- - name : Use OCaml ${{ matrix.ocaml-compiler }}
43+ - name : Set-up OCaml
4544 uses : ocaml/setup-ocaml@v2
4645 with :
4746 ocaml-compiler : ${{ matrix.ocaml-compiler }}
4847 dune-cache : true
48+ allow-prerelease-opam : true
4949
5050 - name : Install .NET Dependencies
5151 run : |
@@ -59,31 +59,21 @@ jobs:
5959 run : bash fake TestJsoo
6060
6161 build-res :
62- strategy :
63- fail-fast : false
64- matrix :
65- os :
66- - ubuntu-latest
67- dotnet :
68- - 6.0.x
69- node-version :
70- - 20.x
71-
72- runs-on : ${{ matrix.os }}
62+ runs-on : ubuntu-latest
7363
7464 steps :
7565 - name : Checkout code
7666 uses : actions/checkout@v4
7767
78- - name : Use .NET ${{ matrix.dotnet }}
68+ - name : Set-up .NET
7969 uses : actions/setup-dotnet@v4
8070 with :
81- dotnet-version : ${{ matrix.dotnet }}
71+ dotnet-version : 6.0.x
8272
83- - name : Use Node.js ${{ matrix.node-version }}
73+ - name : Set-up Node.js
8474 uses : actions/setup-node@v4
8575 with :
86- node-version : ${{ matrix.node-version }}
76+ node-version : 22
8777 cache : yarn
8878
8979 - name : Install .NET Dependencies
Original file line number Diff line number Diff line change @@ -2,48 +2,39 @@ name: Publish
22
33on :
44 release :
5- types : [published]
5+ types :
6+ - published
67
78jobs :
89 build :
9- strategy :
10- fail-fast : false
11- matrix :
12- os :
13- - ubuntu-latest
14- dotnet :
15- - 6.0.x
16- node-version :
17- - 20.x
18- ocaml-compiler :
19- - 5.0.x
20-
21- runs-on : ${{ matrix.os }}
10+ runs-on : ubuntu-latest
2211
2312 steps :
2413 - name : Checkout code
2514 uses : actions/checkout@v4
2615
27- - name : Use .NET ${{ matrix.dotnet }}
16+ - name : Set-up .NET
2817 uses : actions/setup-dotnet@v4
2918 with :
30- dotnet-version : ${{ matrix.dotnet }}
19+ dotnet-version : 6.0.x
3120
32- - name : Use Node.js ${{ matrix.node-version }}
21+ - name : Set-up Node.js
3322 uses : actions/setup-node@v4
3423 with :
35- node-version : ${{ matrix.node-version }}
24+ node-version : 22
3625 cache : yarn
3726
38- - name : Use OCaml ${{ matrix.ocaml-compiler }}
27+ - name : Set-up OCaml
3928 uses : ocaml/setup-ocaml@v2
4029 with :
41- ocaml-compiler : ${{ matrix.ocaml-compiler }}
30+ ocaml-compiler : " 5.1 "
4231 dune-cache : true
32+ allow-prerelease-opam : true
4333
4434 - name : Install .NET Dependencies
45- run : dotnet restore ts2ocaml.sln
46- | dotnet tool restore
35+ run : |
36+ dotnet restore ts2ocaml.sln
37+ dotnet tool restore
4738
4839 - name : Install OCaml Dependencies
4940 run : opam install . --deps-only
You can’t perform that action at this time.
0 commit comments