forked from dealii/dealii
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (87 loc) · 2.48 KB
/
osx.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: github-OSX
on: [push, pull_request]
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
permissions:
contents: read
jobs:
osx-serial:
# simple serial build using apple clang
name: OSX serial
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v3
- name: info
run: |
g++ -v
cmake --version
- name: configure
run: |
cmake -D CMAKE_BUILD_TYPE=Debug -D DEAL_II_CXX_FLAGS='-Werror' -D DEAL_II_EARLY_DEPRECATIONS=ON .
- name: archive
uses: actions/upload-artifact@v3
with:
name: serial-detailed.log
path: detailed.log
- name: build
run: |
make -j 2
make -j 2 test # quicktests
- name: archive error 1
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: osx-serial-CMakeOutput.log
path: CMakeFiles/CMakeOutput.log
- name: archive error 2
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: osx-serial-CMakeError.log
path: CMakeFiles/CMakeError.log
osx-parallel64:
# MPI build using apple clang and 64 bit indices
name: OSX parallel 64bit
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v3
- name: setup
run: |
brew install openmpi
# uncomment these for a gcc based build
#export OMPI_CXX=g++
#export OMPI_CC=gcc
#export OMPI_FC=gfortran
- name: info
run: |
mpicxx -v
cmake --version
- name: configure
run: |
CC=mpicc CXX=mpic++ cmake -D CMAKE_BUILD_TYPE=Debug -D DEAL_II_WITH_64BIT_INDICES=ON -D DEAL_II_CXX_FLAGS='-Werror' -D DEAL_II_EARLY_DEPRECATIONS=ON -D DEAL_II_WITH_MPI=on .
- name: archive
uses: actions/upload-artifact@v3
with:
name: parallel-detailed.log
path: detailed.log
- name: build
run: |
make -j 2
make -j 2 test #quicktests
- name: archive error 1
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: osx-parallel64-CMakeOutput.log
path: CMakeFiles/CMakeOutput.log
- name: archive error 2
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: osx-parallel64-CMakeError.log
path: CMakeFiles/CMakeError.log