mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-20 21:00:46 +01:00
CI: Use MSVC protoc from debug to workaround a crash
This commit is contained in:
parent
50572ac40f
commit
ea1e4541c0
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -1185,6 +1185,21 @@ jobs:
|
||||
working-directory: downloads
|
||||
run: tar -C /c -xf strawberry-msvc-${{matrix.arch}}-${{matrix.buildtype}}.tar.xz
|
||||
|
||||
- name: Download Windows MSVC dependencies (debug)
|
||||
if: matrix.buildtype == 'release'
|
||||
shell: cmd
|
||||
working-directory: downloads
|
||||
run: curl -f -O -L https://github.com/strawberrymusicplayer/strawberry-msvc-dependencies/releases/latest/download/strawberry-msvc-${{matrix.arch}}-debug.tar.xz
|
||||
|
||||
- name: Use protoc from debug
|
||||
if: matrix.buildtype == 'release'
|
||||
shell: bash
|
||||
working-directory: downloads
|
||||
run: |
|
||||
mv -v /c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}/bin/abseil_dll.dll /c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}/bin/abseil_dll.dll_
|
||||
tar -xvf strawberry-msvc-${{matrix.arch}}-debug.tar.xz strawberry_msvc_${{matrix.arch}}_debug/bin/{libprotobufd.dll,libprotocd.dll,protoc.exe,abseil_dll.dll,zlibd.dll}
|
||||
cp -v strawberry_msvc_${{matrix.arch}}_debug/bin/{libprotobufd.dll,libprotocd.dll,protoc.exe,abseil_dll.dll,zlibd.dll} /c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}/bin/
|
||||
|
||||
- name: Update PATH
|
||||
run: echo "${{env.prefix_path_backslash}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
@ -1297,6 +1312,11 @@ jobs:
|
||||
CL: "/MP"
|
||||
run: cmake --build build --config "${{env.cmake_buildtype}}" --parallel 4
|
||||
|
||||
- name: Move back abseil dll
|
||||
if: matrix.buildtype == 'release'
|
||||
shell: bash
|
||||
run: mv -v /c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}/bin/abseil_dll.dll_ /c/strawberry_msvc_${{matrix.arch}}_${{matrix.buildtype}}/bin/abseil_dll.dll
|
||||
|
||||
- name: Copy extra binaries
|
||||
shell: cmd
|
||||
working-directory: build
|
||||
|
Loading…
Reference in New Issue
Block a user