update deps #107
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Koolo Build CI | |
on: | |
push: | |
pull_request: | |
release: | |
jobs: | |
build: | |
name: "Build Koolo binary" | |
runs-on: windows-2022 | |
steps: | |
# Remove this once Windows image get fixed | |
- name: Remove Strawberry Perl from PATH | |
run: | | |
$env:PATH = $env:PATH -replace "C:\\Strawberry\\c\\bin;", "" | |
"PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Append | |
rm C:\mingw64 -force -r | |
- name: "Install CMake" | |
run: | | |
choco install -y --force cmake 7zip.install wget | |
- name: "Install MinGW" | |
run: | | |
wget -nv https://download.qt.io/development_releases/prebuilt/mingw_64/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z | |
7z x -aoa -oC: x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z | |
"C:\mingw64\bin" >> $env:GITHUB_PATH | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Setup Go" | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: "Prepare env" | |
run: mkdir C:\go\pkg | |
- name: "Building OpenCV" | |
continue-on-error: true | |
env: | |
GOPATH: C:\go | |
run: .\prepare_env.bat | |
- name: "Building Koolo artifacts" | |
env: | |
GOPATH: C:\go | |
run: .\build.bat | |
- name: "Packing the release" | |
run: 7z a -tzip koolo_${{ github.ref_name }}.zip .\build\* | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: koolo_${{ github.ref_name }}.zip |