-
-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (34 loc) · 991 Bytes
/
ci_build.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
name: ci_build
env:
CTEST_NO_TESTS_ACTION: error
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CMAKE_INSTALL_PREFIX: ~/libs
CMAKE_PREFIX_PATH: ~/libs
CMAKE_TLS_VERIFY: true
on:
push:
paths:
- "scripts/CMakeLists.txt"
- ".github/workflows/ci_build.yml"
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install prereqs
run: |
sudo apt update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin
- name: configure
run: cmake --preset default
- name: build, test release
run: cmake --workflow --preset default
- run: cmake --install build
# builds fine on local machine
# - name: configure example
# run: cmake -S example -B example/build -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
# - name: build example
# run: cmake --build example/build
# - name: test example
# run: ctest --test-dir example/build -V