Skip to content

Commit

Permalink
let's try use macOS 14 for all CI instances
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Feb 26, 2024
1 parent c18717e commit 23c3fd9
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
# CI on macOS (Qt5)
ci-macos-qt5:
name: "macOS (x86_64; qt5)"
runs-on: macos-latest
runs-on: macos-14-large
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && contains(github.event.head_commit.message, '[qt5]')"

# @TODO Enable gpsd on macOS instance for CI testing
Expand Down Expand Up @@ -123,9 +123,9 @@ jobs:
run: ctest --output-on-failure

# CI on macOS (Qt6)
ci-macos-qt6:
ci-macos-x86-qt6:
name: "macOS (x86_64; qt6)"
runs-on: macos-latest
runs-on: macos-14-large
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"

# @TODO Enable gpsd on macOS instance for CI testing
Expand Down Expand Up @@ -159,3 +159,39 @@ jobs:
working-directory: build
run: ctest --output-on-failure

# CI on macOS (Qt6)
ci-macos-arm-qt6:
name: "macOS (arm64; qt6)"
runs-on: macos-14-xlarge
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"

# @TODO Enable gpsd on macOS instance for CI testing
# @BODY At the moment after installing gpsd (brew install gpsd) library can be found by cmake, but not headers! Apparently we should add some magic for environment variables or something else on macOS Catalina to make headers available for cmake/make
steps:
- name: Install dependencies
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: |
brew update
brew install qt@6 nlopt exiv2
- name: Checkout repository
uses: actions/checkout@v4

- name: Configure CMake
shell: bash
run: |
export PATH="/usr/local/opt/qt@6/bin:$PATH"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=On ${{ github.workspace }}
- name: Compile
working-directory: build
run: make -j3

- name: Run unit tests
uses: coactions/setup-xvfb@v1
with:
working-directory: build
run: ctest --output-on-failure

0 comments on commit 23c3fd9

Please sign in to comment.