-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (79 loc) · 2.43 KB
/
linux.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: linux
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:
- ubuntu-20.04
cxx:
- g++-9
- g++-10
- clang++-10
include:
- cxx: g++-9
cc: gcc-9
- cxx: g++-10
cc: gcc-10
- cxx: clang++-10
cc: clang-10
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: |
sudo apt-get -y install ninja-build
- 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
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}
run: |
cmake --preset ci ${{github.workspace}}/complex -S ${{github.workspace}}/complex -DDREAM3D_DATA_DIR=${{github.workspace}}/DREAM3D_Data -D VCPKG_TARGET_TRIPLET:STRING=x64-linux-dynamic -DCOMPLEX_EXTRA_PLUGINS="Core;OrientationAnalysis" -DCOMPLEX_PLUGIN_SEARCH_DIRS=${{github.workspace}}
- name: Figure out EbsdLib
shell: bash
run: >
ls /home/runner/work/complex_plugins/complex_plugins/complex/build/vcpkg_installed/x64-linux-dynamic/share/ebsdlib/../../include/EbsdLib/Core/
- name: Build
run: |
cmake --build ${{github.workspace}}/complex/build
- name: Test
run: |
ctest --verbose --test-dir ${{github.workspace}}/complex/build