Skip to content

Commit dd085a4

Browse files
committed
add build deps
1 parent 9d7dda5 commit dd085a4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish-packages.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)