Skip to content

Commit 64b1f60

Browse files
committed
fix(size-benchmark): use linux-gnu target on Linux, musl incompatible with workspace C libs
1 parent f95d881 commit 64b1f60

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/pr-binary-size.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ jobs:
1313
with:
1414
fetch-depth: 0 # need full history to check out base ref
1515

16-
- name: Install nightly + rust-src + musl target
17-
run: |
18-
rustup toolchain install nightly --component rust-src
19-
rustup target add x86_64-unknown-linux-musl --toolchain nightly
20-
21-
- name: Install musl linker
22-
run: sudo apt-get install -y musl-tools
16+
- name: Install nightly + rust-src
17+
run: rustup toolchain install nightly --component rust-src
2318

2419
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
2520
with:

size-benchmark/build-size-optimized.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ARCH="$(uname -m | sed 's/arm64/aarch64/')"
2020
OS="$(uname -s)"
2121

2222
case "$OS" in
23-
Linux) TARGET="${ARCH}-unknown-linux-musl" ;;
23+
Linux) TARGET="${ARCH}-unknown-linux-gnu" ;;
2424
Darwin) TARGET="${ARCH}-apple-darwin" ;;
2525
*) echo "Unsupported OS: $OS" >&2; exit 1 ;;
2626
esac

0 commit comments

Comments
 (0)