Skip to content

Commit

Permalink
fix: cross compile for windows from linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamtowards authored Jan 19, 2024
1 parent de3e898 commit 9089769
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ghwl_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ jobs:
sudo apt-get install -y mingw-w64 gcc-mingw-w64 g++-mingw-w64 zip
sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0
sudo apt-get install libwayland-dev libxkbcommon-dev # Wayland
rustup target add x86_64-pc-windows-msvc # Windows
cargo install xwin
xwin --accept-license splat --output /home/me/.xwin
- name: Build for Linux
run: cargo build --release

- name: Build for Windows
run: cargo build --release --target=x86_64-pc-windows-gnu
run: cargo build --release --target=x86_64-pc-windows-msvc

- name: Build for macOS
run: cargo build --release --target=x86_64-apple-darwin
Expand Down

0 comments on commit 9089769

Please sign in to comment.