Skip to content

Commit dd5451a

Browse files
author
damon
committed
release: use cargo-zigbuild for Linux musl cross-compilation
1 parent 8eb3dd8 commit dd5451a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@ jobs:
4141
with:
4242
key: ${{ matrix.target }}
4343

44-
- name: Install cross
44+
- name: Install cargo-zigbuild and Zig
4545
if: matrix.platform == 'linux'
46-
run: cargo install cross --git https://github.com/cross-rs/cross
46+
run: |
47+
pip3 install ziglang
48+
cargo install cargo-zigbuild
4749
4850
- name: Set version from tag
4951
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
5052

51-
- name: Build (cross, Linux musl)
53+
- name: Build (zigbuild, Linux musl)
5254
if: matrix.platform == 'linux'
53-
run: cross build --release --target ${{ matrix.target }}
55+
run: cargo zigbuild --release --target ${{ matrix.target }}
5456

5557
- name: Build (native, macOS)
5658
if: matrix.platform == 'darwin'

0 commit comments

Comments
 (0)