-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.12 KB
/
build-unit.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
name: Goma Unit Tests
on: [push, pull_request]
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build-unit:
name: build release unittest
runs-on: ubuntu-latest
container: westonortiz/goma-libs
defaults:
run:
shell: bash -l -e {0}
steps:
- uses: actions/checkout@v3
- name: Check versions
run: |
. /opt/goma-libs/config.sh
echo $PETSC_DIR
mpirun --version
cmake --version
- name: CMake Configure Goma
run: |
. /opt/goma-libs/config.sh
cmake -DCMAKE_BUILD_TYPE=Release -Bbuild -DENABLE_TESTING=ON .
- name: Build Goma
run: |
. /opt/goma-libs/config.sh
cp scripts/gcc-warnings.json "$HOME/"
echo "::add-matcher::$HOME/gcc-warnings.json"
cd build
make -j 2
./goma -v
- name: Goma Unit Tests
run: |
. /opt/goma-libs/config.sh
export OMPI_MCA_btl_base_warn_component_unused='0'
cd build
make -j2
ctest --output-on-failure -j 2