Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on macOS CI #54

Merged
merged 2 commits into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: MacOS

on:
push:
branches: [ "master", "setup-ci" ]
branches: ['master', 'setup-ci']
pull_request:
branches: [ "master" ]
branches: ['master']

env:
# CMake build type (Release, Debug, RelWithDebInfo, etc.).
Expand All @@ -14,29 +14,30 @@ env:

jobs:
build:
runs-on: macos-latest
runs-on: macos-13

steps:
- name: Check Out
# Checks out the repository.
uses: actions/checkout@v4

- name: Install Qt
# Installs the Qt SDK.
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
host: mac
target: desktop

- name: Configure CMake
# Configures CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build -G "${{env.GENERATOR}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=OFF -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY=""

- name: Builds the library.
# Builds with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Builds the Sandbox app.
# Builds the sandbox app with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target sandbox
- name: Check Out
# Checks out the repository.
uses: actions/checkout@v4

- name: Install Qt
# Installs the Qt SDK.
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
host: mac
target: desktop
arch: clang_64

- name: Configure CMake
# Configures CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build -G "${{env.GENERATOR}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=OFF -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY=""

- name: Builds the library.
# Builds with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Builds the Sandbox app.
# Builds the sandbox app with the given configuration.
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target sandbox