Skip to content

Commit 8c8e7b1

Browse files
author
Alvaro Munoz
committed
test protoc bin
1 parent aade75b commit 8c8e7b1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build-visual_studio-qt6.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ jobs:
4141
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n5.0-latest-win64-gpl-shared-5.0.zip" -OutFile ".\ffmpeg-n5.0-latest-win64-gpl-shared-5.0.zip"
4242
Expand-Archive -LiteralPath "ffmpeg-n5.0-latest-win64-gpl-shared-5.0.zip" -DestinationPath "."
4343
Rename-Item "ffmpeg-n5.0-latest-win64-gpl-shared-5.0" "ffmpeg"
44-
Write-Output "${{ github.workspace }}\ffmpeg" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
44+
Write-Output "${{ github.workspace }}\ffmpeg\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
4545
46-
- name: Setup Protoc
47-
uses: arduino/setup-protoc@v1
46+
- name: Setup protoc
47+
run: |
48+
$ProgressPreference = 'SilentlyContinue'
49+
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/protocolbuffers/protobuf/releases/download/v21.2/protoc-21.2-win64.zip" -OutFile ".\protobuf.zip"
50+
Expand-Archive -LiteralPath ".\protobuf.zip" -DestinationPath ".\protobuf"
51+
Write-Output "${{ github.workspace }}\protobuf\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
4852
4953
- name: Setup nanopb
5054
run: |
@@ -67,7 +71,6 @@ jobs:
6771
Invoke-WebRequest -UseBasicParsing -Uri "https://www.libsdl.org/release/SDL2-devel-2.0.22-VC.zip" -OutFile ".\SDL2-devel-2.0.22-VC.zip"
6872
Expand-Archive -LiteralPath "SDL2-devel-2.0.22-VC.zip" -DestinationPath "."
6973
Rename-Item "SDL2-2.0.22" "SDL2"
70-
$nix_path = "${{ github.workspace }}" -replace "\\", "/"
7174
Write-Output "SDL2_DIR=${{ github.workspace }}\SDL2" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
7275
Set-Content -Path "${{ github.workspace }}\SDL2\sdl2-config.cmake" -Value 'set(TARGET_NAME SDL2::SDL2)'
7376
Add-Content -Path "${{ github.workspace }}\SDL2\sdl2-config.cmake" -Value 'add_library(${TARGET_NAME} SHARED IMPORTED)'
@@ -88,6 +91,7 @@ jobs:
8891

8992
- name: Install pip dependencies
9093
run: |
94+
python3 -m pip install --upgrade pip
9195
python3 -m pip install --upgrade setuptools wheel
9296
python3 -m pip install --user --upgrade scons protobuf grpcio-tools pyinstaller
9397
python3 -c 'import google.protobuf; print(google.protobuf.__file__)'

0 commit comments

Comments
 (0)