From 08739f732c0724838379b96da43b5fc709468418 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 3 Oct 2024 15:56:03 -0400 Subject: [PATCH] add build and release workflow --- .github/workflows/build-and-release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 6bb6577..12d753b 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -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 @@ -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