Skip to content

Commit

Permalink
fix(ci): 🐛 Use cross for multi-os build
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiralOutDotEu committed Nov 2, 2023
1 parent 039a3ab commit 643601f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: |
cargo build --release
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-apple-darwin
rustup target add x86_64-pc-windows-gnu
cargo install cross
cross build --target x86_64-unknown-linux-gnu --release
cross build --target x86_64-apple-darwin --release
cross build --target x86_64-pc-windows-gnu --release
env:
CARGO_TARGET_DIR: ${{ runner.temp }}/target
Expand Down

0 comments on commit 643601f

Please sign in to comment.