Skip to content

Commit 8fc04f6

Browse files
committed
revert this
1 parent 1b4ebad commit 8fc04f6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release-artifacts.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ jobs:
142142
run: |
143143
set -e
144144
145-
TARGET_ARCH="${{ matrix.platform.arch }}"
146-
TARGET_LIBC="${{ matrix.platform.libc }}"
145+
# Build configuration
146+
TARGET="${{ matrix.platform.arch }}-unknown-linux-${{ matrix.platform.libc }}"
147+
rustup target add "$TARGET"
147148
148-
${{ matrix.platform.static == true && 'export CARGO_BUILD_STATIC_CRT=1' || '' }}
149+
${{ matrix.platform.static == true && 'export RUSTFLAGS="-Ctarget-feature=+crt-static"' || '' }}
149150
150-
hack/build/cargo.sh build --release
151+
cargo build --release --target "$TARGET"
151152
152153
# Platform name
153154
PLATFORM="${{ matrix.platform.os }}-${{ matrix.platform.arch }}-${{ matrix.platform.libc }}"
@@ -161,7 +162,7 @@ jobs:
161162
BINARY="${{ matrix.binary }}"
162163
OUTPUT_NAME="${BINARY}_${TAG}_${PLATFORM}"
163164
164-
cp "target/${TARGET_ARCH}-unknown-${{ matrix.platform.os }}-${TARGET_LIBC}/release/${BINARY}" "target/assets/${OUTPUT_NAME}"
165+
cp "target/${TARGET}/release/${BINARY}" "target/assets/${OUTPUT_NAME}"
165166
166167
cd target/assets
167168
if command -v sha256sum >/dev/null 2>&1; then

0 commit comments

Comments
 (0)