Skip to content

Commit

Permalink
add build and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Oct 3, 2024
1 parent 8ccfc37 commit 08739f7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
if: matrix.os == 'macos-latest'
run: |
brew install qt@5 opencv libxcb
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
# Windows setup
- name: Install Chocolatey on Windows
Expand All @@ -53,16 +54,17 @@ jobs:
run: |
choco install opencv qt5-default -y
# Set OpenCV environment variables and add to PATH
- name: Set OpenCV environment variables
if: matrix.os == 'windows-latest'
shell: cmd
# 3. Configure CMake
- name: Configure CMake
if : matrix.os == 'windows-latest'
run: |
setx OPENCV_DIR "C:\tools\opencv"
setx PATH "%PATH%;%OPENCV_DIR%\bin"
setx OPENCV_DIR "C:\tools\opencv"
setx PATH "%PATH%;%OPENCV_DIR%\bin"
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR="C:\tools\opencv"

# 3. Configure CMake
- name: Configure CMake
if : matrix.os != 'windows-latest'
run: cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release

# 4. Build the project
Expand Down

0 comments on commit 08739f7

Please sign in to comment.