From 09674aee1d857773fb60193a8ca8a87c79be1c4a Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Sun, 27 Aug 2023 22:49:05 +0200 Subject: [PATCH] [rust] Build SM in GH actions Linux with cross --- .github/workflows/build-selenium-manager.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-selenium-manager.yml b/.github/workflows/build-selenium-manager.yml index 2482838b608cf..e24f73cbb1a2b 100644 --- a/.github/workflows/build-selenium-manager.yml +++ b/.github/workflows/build-selenium-manager.yml @@ -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