Skip to content

Commit c7bffd6

Browse files
authored
Build PPX binary in Debian 11 container to improve Vercel compatibility (#580)
* Build PPX binary in Debian 11 container to improve compatibility with older glibc versions (2.31 vs 2.35 in Ubuntu 22.04). * install build dependencies * CHANGELOG
1 parent 84573c3 commit c7bffd6

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/ppx.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,28 @@ on:
88

99
jobs:
1010
ppx_linux:
11-
strategy:
12-
matrix:
13-
platform: [ubuntu-latest]
14-
1511
name: PPX Linux
16-
runs-on: ${{ matrix.platform }}
12+
runs-on: ubuntu-latest
13+
container:
14+
image: debian:bullseye
1715
steps:
16+
- name: Install system dependencies
17+
run: |
18+
apt-get update
19+
apt-get install -y --no-install-recommends \
20+
build-essential \
21+
curl \
22+
ca-certificates \
23+
git \
24+
unzip \
25+
bubblewrap
1826
- uses: actions/checkout@v4
1927
- name: Set up OCaml
2028
uses: ocaml/setup-ocaml@v3
2129
with:
2230
ocaml-compiler: "4.14"
2331
dune-cache: true
24-
cache-prefix: "v1"
32+
cache-prefix: "v2-bullseye"
2533
- name: Install dependencies
2634
working-directory: packages/rescript-relay/rescript-relay-ppx
2735
run: opam install . --deps-only
@@ -38,7 +46,7 @@ jobs:
3846
- name: Upload PPX artifact
3947
uses: actions/upload-artifact@v4
4048
with:
41-
name: ppx-${{ matrix.platform }}
49+
name: ppx-linux
4250
path: packages/rescript-relay/rescript-relay-ppx/ppx-*
4351
if-no-files-found: error
4452

CHANGELOG.md

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

3+
- Build Linux PPX binary in Debian 11 (bullseye) container to improve compatibility with older glibc versions. The binary now requires glibc 2.31 instead of 2.39, supporting Amazon Linux 2023 (Vercel), Ubuntu 20.04+, Debian 11+, and RHEL 9+.
4+
35
# 3.5.0
46

57
- Move underlying Relay compiler version to `20.1.1`.

0 commit comments

Comments
 (0)