Skip to content

Commit

Permalink
build: use powershell on windows of course
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 29, 2024
1 parent 03678db commit 6322b95
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,14 @@ jobs:
- name: Download OpenCV source
if: steps.cache-opencv-source.outputs.cache-hit != 'true'
run: |
echo Downloading: opencv-4.9.0.zip
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv/archive/4.9.0.zip -OutFile .\opencv\opencv-4.9.0.zip"
echo Extracting...
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path .\opencv\opencv-4.9.0.zip -DestinationPath .\opencv"
del .\opencv\opencv-4.9.0.zip
echo.
echo Downloading: opencv_contrib-4.9.0.zip
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://github.com/opencv/opencv_contrib/archive/4.9.0.zip -OutFile .\opencv\opencv_contrib-4.9.0.zip"
echo Extracting...
powershell -command "$ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path .\opencv\opencv_contrib-4.9.0.zip -DestinationPath .\opencv"
del .\opencv\opencv_contrib-4.9.0.zip
echo.
wget https://github.com/opencv/opencv/archive/4.9.0.zip -O ./opencv/opencv-4.9.0.zip
wget https://github.com/opencv/opencv_contrib/archive/4.9.0.zip -O ./opencv/opencv_contrib-4.9.0.zip
- name: Extract OpenCV source
if: steps.cache-opencv-source.outputs.cache-hit != 'true'
shell: powershell
run: |
Expand-Archive -Path .\opencv\opencv-4.9.0.zip -DestinationPath .\opencv
Expand-Archive -Path .\opencv\opencv_contrib-4.9.0.zip -DestinationPath .\opencv
- name: Save cached OpenCV source
uses: actions/cache/save@v4
if: steps.cache-opencv-source.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 6322b95

Please sign in to comment.