Skip to content

Commit 79262f1

Browse files
committed
Update build.yaml
1 parent 5966a65 commit 79262f1

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,22 @@ jobs:
5656
rustc --version --verbose
5757
rustup show
5858
59-
- name: Install MinGW
59+
- 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
6068
run: |
61-
choco install mingw --no-progress --yes
62-
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
6375

6476
- name: Build for ${{ matrix.target }}
6577
run: cargo build --release --target=${{ matrix.target }}

0 commit comments

Comments
 (0)