forked from cburstedde/p4est
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (86 loc) · 2.61 KB
/
ci_darwin.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
97
98
99
100
101
102
103
name: CI for Autotools/Darwin
on:
push:
paths-ignore:
- "**/CMakeLists.txt"
- "**.cmake"
- "**.cmake.in"
- "cmake/**"
- "CMake*"
- ".github/workflows/ci.yml"
- ".github/workflows/ci_cmake.yml"
- ".github/workflows/ci_valgrind.yml"
pull_request:
jobs:
darwin1:
runs-on: macos-latest
name: Autotools build 1 on Darwin
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
steps:
- run: echo "This job is running on a ${{ runner.os }} server hosted by GitHub"
- uses: actions/checkout@main
name: Checkout source code
with:
submodules: true
- name: Install system dependencies
run: brew install open-mpi automake libtool
- name: Run bootstrap script
run: ./bootstrap
- name: Make check without MPI, with debug
shell: bash
run: |
DIR="checkdebug" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-debug \
CFLAGS="-O0 -g -Wall -Wextra -Wno-unused-parameter"
make -j V=0
make -j check V=0
- name: Make check with MPI and debug
shell: bash
run: |
DIR="checkMPIdebug" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --enable-debug \
CFLAGS="-O0 -g -Wall -Wextra -Wno-unused-parameter"
make -j V=0
make -j check V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: darwin1_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
darwin2:
runs-on: macos-latest
name: Autotools build 2 on Darwin
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
steps:
- run: echo "This job is running on a ${{ runner.os }} server hosted by GitHub"
- uses: actions/checkout@main
name: Checkout source code
with:
submodules: true
- name: Install system dependencies
run: brew install open-mpi automake libtool
- name: Run bootstrap script
run: ./bootstrap
- name: Make check with MPI, debug and C++ compiler
shell: bash
run: |
DIR="checkMPIdebugCXX" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --enable-debug CC=mpicxx \
CFLAGS="-O0 -g -Wall -Wextra -Wno-unused-parameter"
make -j V=0
make -j check V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: darwin2_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log