Skip to content

Commit

Permalink
[rust] Build SM in GH actions Linux with cross
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Aug 27, 2023
1 parent d10d9ee commit 09674ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-selenium-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ jobs:
run: |
rustup update
rustc -vV
- name: "Install zig"
- name: "Install cross"
run: |
sudo snap install zig --beta --classic
cargo install cross --git https://github.com/cross-rs/cross
- name: "Build release"
run: |
cd rust
cargo install cargo-zigbuild
rustup target add x86_64-unknown-linux-musl
cargo zigbuild --release --target x86_64-unknown-linux-musl
cross build --release --target x86_64-unknown-linux-musl
- name: "Tar binary (to keep executable permission)"
run: |
cd rust/target/x86_64-unknown-linux-musl/release
Expand Down

0 comments on commit 09674ae

Please sign in to comment.