forked from fmihpc/fsgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.11 KB
/
cmake_single_platform.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
name: CMake build and test fsgrid
on:
push:
branches: [ "master", "development", "ctest_gtest" ]
pull_request:
branches: [ "master", "development", "ctest_gtest" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
PROJECT_NAME: fsgrid
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install OpenMPI
run: >
sudo apt-get install
openmpi-bin
libopenmpi-dev
openmpi-common
- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-Dproject_name=${{env.PROJECT_NAME}}
-DMPI_TEST_NUM_PROCS=16
-DMPI_TEST_EXTRA_FLAGS=--oversubscribe
- name: Build
run: >
cmake
--build ${{github.workspace}}/build
--config ${{env.BUILD_TYPE}}
- name: Test
id: test
working-directory: ${{github.workspace}}
run: >
ctest
--test-dir ${{github.workspace}}/build/
-C ${{env.BUILD_TYPE}}
--output-on-failure