Skip to content

Commit 1e8ecb0

Browse files
committed
ci: add s390x and ppc64le linux gnu targets (#8493)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Low risk: CI/workflow and packaging metadata changes only; main risk is potential release-build failures for the new architectures. > > **Overview** > Expands the release build matrix to produce `@rolldown/binding` artifacts for **Linux `s390x-unknown-linux-gnu`** and **`powerpc64le-unknown-linux-gnu`** (using `--use-napi-cross`, with `s390x` forcing `CFLAGS=-fuse-ld=lld`). > > Updates tooling versions used in CI by bumping Zig for musl builds to `0.15.2` and the FreeBSD VM version to `15.0`, and adds the two new targets to `packages/rolldown/package.json` `napi.targets` so they are included in published binaries. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 73b6066. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent ca146ac commit 1e8ecb0

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/reusable-release-build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,18 @@ jobs:
5757

5858
- os: ubuntu-latest
5959
target: aarch64-unknown-linux-musl
60+
build: pnpm ci:build-release-binding -x --target aarch64-unknown-linux-musl
61+
62+
- os: ubuntu-latest
63+
target: s390x-unknown-linux-gnu
6064
build: |
61-
pnpm ci:build-release-binding -x --target aarch64-unknown-linux-musl
65+
export CFLAGS="-fuse-ld=lld"
66+
pnpm ci:build-release-binding --target s390x-unknown-linux-gnu --use-napi-cross
67+
68+
- os: ubuntu-latest
69+
target: powerpc64le-unknown-linux-gnu
70+
build: pnpm ci:build-release-binding --target powerpc64le-unknown-linux-gnu --use-napi-cross
71+
6272
- os: ubuntu-latest
6373
target: wasm32-wasip1-threads
6474
build: |
@@ -81,7 +91,7 @@ jobs:
8191
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
8292
if: ${{ contains(matrix.target, 'musl') }}
8393
with:
84-
version: 0.14.1
94+
version: 0.15.2
8595

8696
- name: Setup OpenHarmony SDK
8797
if: ${{ contains(matrix.target, 'ohos') }}
@@ -129,7 +139,7 @@ jobs:
129139
RUSTUP_IO_THREADS: 1
130140
with:
131141
operating_system: freebsd
132-
version: '14.2'
142+
version: '15.0'
133143
memory: 8G
134144
cpu_count: 3
135145
environment_variables: 'DEBUG RUSTUP_IO_THREADS'

packages/rolldown/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@
159159
"aarch64-unknown-linux-ohos",
160160
"aarch64-pc-windows-msvc",
161161
"aarch64-linux-android",
162-
"wasm32-wasip1-threads"
162+
"wasm32-wasip1-threads",
163+
"s390x-unknown-linux-gnu",
164+
"powerpc64le-unknown-linux-gnu"
163165
],
164166
"wasm": {
165167
"initialMemory": 16384,

0 commit comments

Comments
 (0)