@@ -19,10 +19,22 @@ jobs:
1919
2020 name : Build PPX for release
2121 runs-on : ${{ matrix.platform }}
22+ container :
23+ image : debian:bullseye
2224 defaults :
2325 run :
2426 working-directory : packages/rescript-relay/rescript-relay-ppx
2527 steps :
28+ - name : Install system dependencies
29+ run : |
30+ apt-get update
31+ apt-get install -y --no-install-recommends \
32+ build-essential \
33+ curl \
34+ ca-certificates \
35+ git \
36+ unzip \
37+ bubblewrap
2638 - uses : actions/checkout@v4
2739 - uses : actions/setup-node@v4
2840 with :
@@ -34,11 +46,12 @@ jobs:
3446 with :
3547 ocaml-compiler : " 4.14"
3648 dune-cache : true
37- cache-prefix : " v1 "
49+ cache-prefix : " v2-bullseye "
3850 - name : Install PPX dependencies
3951 run : opam install . --deps-only
4052 - name : Build PPX
41- run : opam exec -- dune build bin/RescriptRelayPpxApp.exe
53+ run : |
54+ opam exec -- dune build --profile release-static bin/RescriptRelayPpxApp.exe
4255 - name : Copy built PPX file
4356 run : |
4457 cp _build/default/bin/RescriptRelayPpxApp.exe ppx-linux
@@ -161,18 +174,6 @@ jobs:
161174 node-version : 23
162175 env :
163176 CI : true
164- - name : Set up OCaml
165- uses : ocaml/setup-ocaml@v3
166- with :
167- ocaml-compiler : " 4.14"
168- dune-cache : true
169- cache-prefix : " v1"
170- - name : Install PPX dependencies
171- working-directory : packages/rescript-relay/rescript-relay-ppx
172- run : opam install . --deps-only
173- - name : Build PPX
174- working-directory : packages/rescript-relay/rescript-relay-ppx
175- run : opam exec -- dune build bin/RescriptRelayPpxApp.exe
176177 - name : Build assets
177178 env :
178179 INPUT_TAG_NAME : ${{ github.event.inputs.tag_name }}
0 commit comments