Unnamed repository; edit this file 'description' to name the repository.
Use `manylinux` Docker container instead of zigbuild for x64 Linux
This gets us glibc 2.28 without using `cargo zigbuild`, which is not compatible with PGO.
Jakub Beránek 2025-04-15
parent b8cf608 · commit 4633fbf
-rw-r--r--.github/workflows/release.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index c76d3da5f8..9d2ff95d28 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -36,7 +36,9 @@ jobs:
code-target: win32-arm64
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- zig_target: x86_64-unknown-linux-gnu.2.28
+ # Use a container with glibc 2.28
+ # Zig is not used because it doesn't work with PGO
+ container: quay.io/pypa/manylinux_2_28_x86_64
code-target: linux-x64
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
@@ -71,6 +73,12 @@ jobs:
with:
node-version: 22
+ - name: Install rustup
+ if: ${{ matrix.container }}
+ run: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable