Skip to content

Commit a39b05f

Browse files
committed
fix(build): update gclib version to fix build issues on new macos
1 parent fab5a2b commit a39b05f

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

docker/build-binary.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,16 @@ set -e
33

44
export BINARY_NAME=gateway
55

6-
echo "Cleaning up old builds..."
7-
rm -rf target/linux
8-
9-
echo "Creating platform-specific directories..."
10-
mkdir -p target/linux/amd64
11-
mkdir -p target/linux/arm64
12-
136
# Linux ARM (aarch64)
14-
echo "Building for Linux ARM (aarch64)"
7+
rm -rf target/linux/arm64
158
rustup target add aarch64-unknown-linux-gnu
16-
cargo zigbuild --release --target aarch64-unknown-linux-gnu.2.17
17-
echo "Linux ARM binary: target/aarch64-unknown-linux-gnu/release/$BINARY_NAME"
9+
cargo zigbuild --release --target aarch64-unknown-linux-gnu.2.28
10+
mkdir -p target/linux/arm64
1811
cp target/aarch64-unknown-linux-gnu/release/$BINARY_NAME target/linux/arm64/
1912

2013
# Linux AMD (x86_64):
21-
echo "Building for Linux AMD (x86_64)"
14+
rm -rf target/linux/amd64
2215
rustup target add x86_64-unknown-linux-gnu
23-
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.17
24-
echo "Linux AMD binary: target/x86_64-unknown-linux-gnu/release/$BINARY_NAME"
16+
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28
17+
mkdir -p target/linux/amd64
2518
cp target/x86_64-unknown-linux-gnu/release/$BINARY_NAME target/linux/amd64/

0 commit comments

Comments
 (0)