-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (61 loc) · 1.89 KB
/
macos.yml
File metadata and controls
63 lines (61 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: macos
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
build:
env:
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
strategy:
fail-fast: false
matrix:
os:
- macos-11
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout Complex Repo
uses: actions/checkout@v2
with:
repository: bluequartzsoftware/complex
path: complex
submodules: true
- name: Checkout DREAM3D_Data Repo
uses: actions/checkout@v2
with:
repository: DREAM3D/DREAM3D_Data
path: DREAM3D_Data
submodules: true
- name: Add C++ Problem Matcher
uses: ammaraskar/gcc-problem-matcher@a141586609e2a558729b99a8c574c048f7f56204
- name: Install Dependencies
run: |
brew install ninja
- name: Setup NuGet Credentials
shell: bash
run: >
mono `vcpkg fetch nuget | tail -n 1`
sources add
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json"
-storepasswordincleartext
-name "GitHub"
-username "BlueQuartzSoftware"
-password "${{secrets.GITHUB_TOKEN}}"
- name: Configure
run: |
cmake --preset ci ${{github.workspace}}/complex -S ${{github.workspace}}/complex -DDREAM3D_DATA_DIR=${{github.workspace}}/DREAM3D_Data -D VCPKG_TARGET_TRIPLET:STRING=x64-osx-dynamic -DCOMPLEX_EXTRA_PLUGINS="Core;OrientationAnalysis" -DCOMPLEX_PLUGIN_SEARCH_DIRS=${{github.workspace}}
- name: Build
run: |
cmake --build ${{github.workspace}}/complex/build
- name: Test
run: |
ctest --verbose --test-dir ${{github.workspace}}/complex/build