Add full support for Homebrew dependencies #241
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: Unit tests | |
on: | |
push: | |
branches: ["develop"] | |
pull_request: | |
branches: | |
- "develop" | |
concurrency: | |
group: "${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
debian_static: | |
name: Debian 12 (static libraries) | |
runs-on: ubuntu-latest | |
container: ghcr.io/educelab/ci-docker:static.12.0 | |
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }} | |
timeout-minutes: 180 | |
env: | |
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON" | |
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.6.1/" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build volume-cartographer | |
run: | | |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS | |
cmake --build build/ | |
- name: Run tests | |
run: ctest -V --test-dir build/ | |
debian_dynamic: | |
name: Debian 12 (shared libraries) | |
runs-on: ubuntu-latest | |
container: ghcr.io/educelab/ci-docker:dynamic.12.0 | |
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }} | |
timeout-minutes: 180 | |
env: | |
EXTRA_CMAKE_FLAGS: "-DBUILD_SHARED_LIBS=ON -DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON" | |
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.6.1/" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build volume-cartographer | |
run: | | |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS | |
cmake --build build/ | |
- name: Run tests | |
run: ctest -V --test-dir build/ | |
macos_13: | |
name: macOS 13 | |
runs-on: macos-13 | |
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }} | |
timeout-minutes: 180 | |
env: | |
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
brew bundle | |
brew install ninja | |
- name: Build volume-cartographer | |
run: | | |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS | |
cmake --build build/ | |
- name: Run tests | |
run: ctest -V --test-dir build/ | |
macos_14: | |
name: macOS 14 | |
runs-on: macos-14 | |
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }} | |
timeout-minutes: 180 | |
env: | |
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON" | |
MACOSX_DEPLOYMENT_TARGET: "14.4" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Override the macOS SDK | |
run: | | |
sudo xcode-select -s /Library/Developer/CommandLineTools | |
# ls -lha /Library/Developer/CommandLineTools/SDKs/ | |
# ls -lha /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ | |
- name: Install dependencies | |
run: | | |
brew bundle | |
brew install ninja | |
- name: Build volume-cartographer | |
run: | | |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS | |
cmake --build build/ | |
- name: Run tests | |
run: ctest -V --test-dir build/ |