Skip to content

Commit

Permalink
Merge pull request #2165 from reubenmiller/build-ziglang-0.11.0
Browse files Browse the repository at this point in the history
build: update cargo-zigbuild to support ziglang 0.11.0
  • Loading branch information
reubenmiller authored Aug 18, 2023
2 parents 4ea00b6 + cd6eaef commit ab57a58
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ci/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,17 @@ if [ "$SHOW_VERSION" == "1" ]; then
fi

# Use zig to build as it is provides better cross compiling support
if ! cargo zigbuild --help &>/dev/null; then
cargo install cargo-zigbuild
fi
cargo install cargo-zigbuild --version ">=0.17.1"

# Allow users to install zig by other package managers
if ! zig --help &>/dev/null; then
if ! python3 -m ziglang --help &>/dev/null; then
# Fix version, as 0.11.0 does not build
pip3 install ziglang==0.10.1.post1
PIP_ROOT_USER_ACTION=ignore pip3 install ziglang --break-system-packages 2>/dev/null || PIP_ROOT_USER_ACTION=ignore pip3 install ziglang
fi
fi

# Display zig version to help with debugging
echo "zig version: $(zig version ||:)"
echo "zig version: $(zig version 2>/dev/null || python3 -m ziglang version 2>/dev/null ||:)"

if [ -z "$ARCH" ]; then
# If no target has been given, choose the target triple based on the
Expand Down

1 comment on commit ab57a58

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
251 0 5 251 100

Please sign in to comment.