File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,41 @@ jobs:
173173 "OPENSSL_INCLUDE_DIR=$inst\include" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
174174 "OPENSSL_LIB_DIR=$inst\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
175175
176+ - name : Install MSYS2 (mingw64) for protobuf-src (Windows)
177+ if : matrix.build.OS == 'windows-latest'
178+ uses : msys2/setup-msys2@v2
179+ with :
180+ msystem : MINGW64
181+ update : true
182+ install : >-
183+ base-devel
184+ mingw-w64-x86_64-toolchain
185+ autoconf
186+ automake
187+ libtool
188+ make
189+ perl
190+ pkgconf
191+
192+ - name : Force autotools to use gcc (Windows)
193+ if : matrix.build.OS == 'windows-latest'
194+ shell : powershell
195+ run : |
196+ "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
197+ "C:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
198+ "CC=gcc" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
199+ "CXX=g++" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
200+ "AR=ar" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
201+ "RANLIB=ranlib"| Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
202+
203+ - name : Debug toolchain (Windows)
204+ if : matrix.build.OS == 'windows-latest'
205+ shell : powershell
206+ run : |
207+ where sh
208+ where gcc
209+ where cl
210+ gcc --version
176211
177212 - name : Build (linux/macos/windows)
178213 uses : actions-rs/cargo@v1
You can’t perform that action at this time.
0 commit comments