@@ -18,30 +18,23 @@ jobs:
1818 defaults :
1919 run :
2020 working-directory : packages/rescript-relay/rescript-relay-ppx
21- container :
22- image : alexfedoseev/alpine-node-yarn-esy:0.0.9
2321 steps :
2422 - uses : actions/checkout@v4
2523 - uses : actions/setup-node@v4
2624 with :
2725 node-version : 20.x
2826 env :
2927 CI : true
30- - name : Esy install
31- run : esy install
32- - name : Print esy cache
33- id : print_esy_cache
34- run : node $GITHUB_WORKSPACE/.github/workflows/print_esy_cache.js
35- - name : Try to restore dependencies cache
36- uses : actions/cache@v4
37- id : deps-cache
28+ - name : Set up OCaml
29+ uses : ocaml/setup-ocaml@v3
3830 with :
39- path : ${{ steps.print_esy_cache.outputs.esy_cache }}
40- key : ${{ matrix.platform }}---v1${{ hashFiles('**/index.json') }}
41- restore-keys : |
42- ${{ matrix.platform }}---v1
31+ ocaml-compiler : " 4.14"
32+ dune-cache : true
33+ cache-prefix : " v1"
34+ - name : Install PPX dependencies
35+ run : opam install . --deps-only
4336 - name : Build PPX
44- run : esy linux-release-static
37+ run : opam exec -- dune build bin/RescriptRelayPpxApp.exe
4538 - name : Copy built PPX file
4639 run : |
4740 cp _build/default/bin/RescriptRelayPpxApp.exe ppx-linux
@@ -74,13 +67,18 @@ jobs:
7467 node-version : 20.x
7568 env :
7669 CI : true
77- - name : Install esy
78- run : npm install -g esy
79- - name : Build PPX
80- uses : esy/github-action@6863524ed7748e7882e317e31ac2b8b107011744
70+ - name : Set up OCaml
71+ uses : ocaml/setup-ocaml@v3
8172 with :
82- cache-key : ${{ matrix.platform }}-${{ hashFiles('esy.lock/index.json') }}-v4
83- working-directory : packages/rescript-relay/rescript-relay-ppx
73+ ocaml-compiler : " 4.14"
74+ dune-cache : true
75+ cache-prefix : " v1"
76+ - name : Install PPX dependencies
77+ working-directory : packages/rescript-relay/rescript-relay-ppx
78+ run : opam install . --deps-only
79+ - name : Build PPX
80+ working-directory : packages/rescript-relay/rescript-relay-ppx
81+ run : opam exec -- dune build bin/RescriptRelayPpxApp.exe
8482 - name : Strip PPX binary
8583 if : runner.os != 'Windows'
8684 working-directory : packages/rescript-relay/rescript-relay-ppx
@@ -159,13 +157,18 @@ jobs:
159157 node-version : 20
160158 env :
161159 CI : true
162- - name : Install esy
163- run : npm install -g esy
164- - name : Build PPX
165- uses : esy/github-action@6863524ed7748e7882e317e31ac2b8b107011744
160+ - name : Set up OCaml
161+ uses : ocaml/setup-ocaml@v3
166162 with :
167- cache-key : ${{ hashFiles('esy.lock/index.json') }}-v4
168- working-directory : packages/rescript-relay/rescript-relay-ppx
163+ ocaml-compiler : " 4.14"
164+ dune-cache : true
165+ cache-prefix : " v1"
166+ - name : Install PPX dependencies
167+ working-directory : packages/rescript-relay/rescript-relay-ppx
168+ run : opam install . --deps-only
169+ - name : Build PPX
170+ working-directory : packages/rescript-relay/rescript-relay-ppx
171+ run : opam exec -- dune build bin/RescriptRelayPpxApp.exe
169172 - name : Build assets
170173 env :
171174 INPUT_TAG_NAME : ${{ github.event.inputs.tag_name }}
0 commit comments