File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments