Skip to content

Commit afcd954

Browse files
committed
Use cargo-xwin for windows build
1 parent 0522837 commit afcd954

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ jobs:
5858
- name: Cache Rust dependencies
5959
uses: Swatinem/rust-cache@v2
6060

61-
- name: Install cross (for Windows build)
61+
- name: Install cargo-xwin (for Windows build)
6262
if: matrix.target == 'x86_64-pc-windows-msvc'
63-
run: cargo install cross
63+
run: cargo install cargo-xwin
6464

6565
- name: Set build flags
6666
id: build_flags
@@ -83,7 +83,7 @@ jobs:
8383

8484
- name: Build (Windows)
8585
if: matrix.target == 'x86_64-pc-windows-msvc'
86-
run: cross build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
86+
run: cargo xwin build ${{ steps.build_flags.outputs.flags }} --target ${{ matrix.target }}
8787

8888
- name: Upload artifact
8989
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)