-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (49 loc) · 1.38 KB
/
ci.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
name: continuous integration
on:
# run tests on push events
push:
# run tests on PR events
pull_request:
jobs:
ci:
runs-on: ${{ matrix.os }}
# Launch a matrix of jobs
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04,macos-10.15]
compiler: [gcc,clang]
steps:
- name: GNU gcc symlink on OSX
# by default, /usr/local/bin/gcc points toward clang on OSX
if: matrix.compiler == 'gcc' && matrix.os == 'macos-10.15'
run: |
ln -sf /usr/local/bin/gcc-11 /usr/local/bin/gcc
- name: Install LibCommons
# LinearElasticity don't build with MSVC
run: |
git clone https://github.com/ISCDtoolbox/Commons.git
cd Commons
mkdir build
cd build
cmake ..
make install
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compiler }}
# checkout the event branch for automatic workflows
- uses: actions/checkout@v2
with:
path: mshdist
- name: Configure Mshdist
run: |
cmake -Smshdist -Bbuild -DCMAKE_INSTALL_PREFIX=$HOME/install
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compiler }}
- name: Build Mshdist
run: |
cmake --build build
- name: Install Mshdist
run: |
cmake --install build