We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5966a65 commit 79262f1Copy full SHA for 79262f1
1 file changed
.github/workflows/build.yaml
@@ -56,10 +56,22 @@ jobs:
56
rustc --version --verbose
57
rustup show
58
59
- - name: Install MinGW
+ - name: Install MSYS2 and MinGW-w64
60
+ uses: msys2/setup-msys2@v2
61
+ with:
62
+ update: true
63
+ install: >-
64
+ mingw-w64-i686-gcc
65
+ mingw-w64-x86_64-gcc
66
+
67
+ - name: Add MinGW to PATH
68
run: |
- choco install mingw --no-progress --yes
- echo "C:\tools\mingw64\bin" >> $GITHUB_PATH
69
+ if ("${{ matrix.target }}" -eq "i686-pc-windows-gnu") {
70
+ echo "C:\msys64\mingw32\bin" >> $env:GITHUB_PATH
71
+ } else {
72
+ echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
73
+ }
74
+ shell: pwsh
75
76
- name: Build for ${{ matrix.target }}
77
run: cargo build --release --target=${{ matrix.target }}
0 commit comments