@@ -59,10 +59,16 @@ jobs:
5959 include :
6060 - rust_target : x86_64-pc-windows-msvc
6161 clang_cl : C:/msys64/mingw64/bin/clang-cl.exe
62+ package : mingw-w64-x86_64-clang
6263 - rust_target : i686-pc-windows-msvc
6364 clang_cl : C:/msys64/mingw32/bin/clang-cl.exe
65+ package : mingw-w64-i686-clang
6466 steps :
6567 - uses : actions/checkout@v2
68+ - uses : msys2/setup-msys2@v2
69+ with :
70+ release : false
71+ install : ${{ matrix.package }}
6672 - uses : actions-rs/toolchain@v1
6773 with :
6874 toolchain : stable
@@ -87,16 +93,21 @@ jobs:
8793 - x86_64-pc-windows-gnu
8894 - i686-pc-windows-gnu
8995 manifest : ['psm/Cargo.toml', 'Cargo.toml']
96+ include :
97+ - rust_target : x86_64-pc-windows-gnu
98+ mingw_path : C:/msys64/mingw64/bin
99+ package : mingw-w64-x86_64-gcc
100+ - rust_target : i686-pc-windows-gnu
101+ mingw_path : C:/msys64/mingw32/bin
102+ package : mingw-w64-i686-gcc
90103 steps :
91104 - uses : actions/checkout@v2
92- - name : Add MSYS2 to the PATH
93- run : echo "c:/msys64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
94- - name : Add 32-bit mingw-w64 to the PATH
95- run : echo "c:/msys64/mingw32/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
96- if : startsWith(matrix.rust_target, 'i686')
97- - name : Add 64-bit mingw-w64 to the PATH
98- run : echo "c:/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
99- if : startsWith(matrix.rust_target, 'x86_64')
105+ - uses : msys2/setup-msys2@v2
106+ with :
107+ release : false
108+ install : ${{ matrix.package }}
109+ - run : echo "c:/msys64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
110+ - run : echo "${{ matrix.mingw_path }}" | Out-File -FilePath $env:GITHUB_PATH -Append
100111 - name : Install Rust
101112 uses : actions-rs/toolchain@v1
102113 with :
0 commit comments