This commit is contained in:
2026-04-05 15:46:18 +08:00
parent 7b340492e2
commit fdf6f7561f

View File

@@ -35,7 +35,7 @@ jobs:
export AR="${arch}-ar"
export HOST_AR="ar"
export RUSTFLAGS="-C linker=${CC}"
cargo build --release --target ${{ matrix.arch }} --no-default-features -F zig
cargo build --release --target ${{ matrix.arch }}
version=${{ github.event.release.tag_name }}
cd target/${{ matrix.arch }}/release
7z a -mx9 "../../../msg_tool-${version}-${{ matrix.arch }}.zip" "msg_tool"
@@ -56,7 +56,7 @@ jobs:
uses: actions/checkout@v5
- name: Build project
run: |
docker run --rm -v $(pwd):/io -w /io ghcr.io/rust-cross/cargo-zigbuild /bin/bash -c 'apt-get update && apt-get install -y cmake && cargo zigbuild --release --target ${{ matrix.arch }}'
docker run --rm -v $(pwd):/io -w /io ghcr.io/rust-cross/cargo-zigbuild /bin/bash -c 'apt-get update && apt-get install -y cmake && cargo zigbuild --release --target ${{ matrix.arch }} --no-default-features -F zig'
version=${{ github.event.release.tag_name }}
cd target/${{ matrix.arch }}/release