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 fa3f6a3 commit 3ecce85
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
# 1. Checkout the repository
# Get dependencies
- name: Checkout code
uses: actions/checkout@v3

- name: Get Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: run-vcpkg
if: matrix.os == 'windows-latest'
uses: lukka/run-vcpkg@v11.5
with:
vcpkgJsonGlob: 'vcpkg.json'

# 2. Set up the environment
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v1
with:
Expand All @@ -36,6 +29,13 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v4

- name: run-vcpkg
if: matrix.os == 'windows-latest'
uses: lukka/run-vcpkg@v11.5
with:
vcpkgJsonGlob: 'vcpkg.json'
vcpkgGitCommitId: 'c82f74667287d3dc386bce81e44964370c91a289'
## Windows Build ##
# Install OpenCV via vcpkg
- name: Install OpenCV via vcpkg
if: matrix.os == 'windows-latest'
Expand All @@ -59,7 +59,7 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE=%cd%\vcpkg\scripts\buildsystems\vcpkg.cmake ^
-DCMAKE_BUILD_TYPE=Release
## End Windows Build ##
# Linux setup
- name: Install dependencies on Linux
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 3ecce85

Please sign in to comment.