-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add macos build based on conda package manager
- Loading branch information
1 parent
ef88151
commit da34909
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: macOS | ||
name: macOS-brew | ||
|
||
on: [push] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: macOS-conda | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
name: build-macos-qt${{matrix.qt_version_name}} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Conda Environment | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
activate-environment: ci_macos_conda | ||
|
||
- name: Install Qt5 | ||
run: conda install conda-forge::qt | ||
|
||
- name: Install OpenCascade | ||
run: conda install conda-forge::occt | ||
|
||
- name: Install Assimp | ||
run: conda install conda-forge::assimp | ||
|
||
- name: Get count of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v1 | ||
id: cpu-cores | ||
|
||
- name: Build | ||
run: | | ||
mkdir ${{github.workspace}}/build | ||
cd ${{github.workspace}}/build | ||
cmake --version | ||
cmake .. \ | ||
-DMayo_BuildTests=ON \ | ||
-DMayo_BuildPluginAssimp=ON | ||
cmake --build . \ | ||
--config Release \ | ||
--parallel ${{steps.cpu-cores.outputs.count}} | ||
- name: Execute Unit Tests | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
./mayo.app/Contents/MacOS/mayo --runtests |
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