Skip to content

Commit 0ec7602

Browse files
committed
fix linux glibc ppx build
1 parent 84e2816 commit 0ec7602

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/build-release.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# master
22

3+
# 4.2.1
4+
5+
- Actually apply fix for lowering the glibc requirement from the PR in 3.5.1, to the release. This was not applied to the actual release until now.
6+
37
# 4.2.0
48

59
- Simplify `missingFieldHandlers`. https://github.com/zth/rescript-relay/pull/589

0 commit comments

Comments
 (0)