File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 20
20
- aarch64-apple-darwin
21
21
- x86_64-apple-darwin
22
22
- x86_64-pc-windows-gnu
23
+ - aarch64-pc-windows-msvc
23
24
24
25
steps :
25
26
- uses : actions/checkout@v3
@@ -45,15 +46,16 @@ jobs:
45
46
- name : Install cargo-xwin
46
47
run : cargo binstall --no-confirm cargo-xwin
47
48
48
- - name : Set up MinGW
49
+ - name : Set up MinGW (for x86_64 Windows)
50
+ if : ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
49
51
run : sudo apt-get install gcc-mingw-w64-x86-64 -y
50
52
51
53
- name : Build with cargo-zigbuild (non-Windows)
52
- if : ${{ !endsWith(matrix.target, 'windows-gnu') }}
54
+ if : ${{ !endsWith(matrix.target, 'windows-gnu') && !endsWith(matrix.target, 'windows-msvc') }}
53
55
run : cargo zigbuild --target ${{ matrix.target }} --release
54
56
55
57
- name : Build with cargo-xwin (Windows)
56
- if : ${{ endsWith(matrix.target, 'windows-gnu') }}
58
+ if : ${{ endsWith(matrix.target, 'windows-gnu') || endsWith(matrix.target, 'windows-msvc') }}
57
59
run : cargo xwin build --target ${{ matrix.target }} --release
58
60
59
61
- name : Upload artifacts
You can’t perform that action at this time.
0 commit comments