Skip to content

Commit 09674ae

Browse files
committed
[rust] Build SM in GH actions Linux with cross
1 parent d10d9ee commit 09674ae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build-selenium-manager.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ jobs:
4040
run: |
4141
rustup update
4242
rustc -vV
43-
- name: "Install zig"
43+
- name: "Install cross"
4444
run: |
45-
sudo snap install zig --beta --classic
45+
cargo install cross --git https://github.com/cross-rs/cross
4646
- name: "Build release"
4747
run: |
4848
cd rust
49-
cargo install cargo-zigbuild
5049
rustup target add x86_64-unknown-linux-musl
51-
cargo zigbuild --release --target x86_64-unknown-linux-musl
50+
cross build --release --target x86_64-unknown-linux-musl
5251
- name: "Tar binary (to keep executable permission)"
5352
run: |
5453
cd rust/target/x86_64-unknown-linux-musl/release

0 commit comments

Comments
 (0)