-
-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (40 loc) · 1.04 KB
/
ci.yml
File metadata and controls
53 lines (40 loc) · 1.04 KB
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
name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CMAKE_BUILD_TYPE: Release
on:
push:
paths:
- "**.f90"
- "**.F90"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci.yml"
workflow_dispatch:
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
core:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install packages Linux
timeout-minutes: 15
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev libscalapack-mpi-dev libparmetis-dev
- name: Install packages macOS
timeout-minutes: 15
if: runner.os == 'macOS'
run: brew install scalapack open-mpi metis
- run: cmake -B build
- run: cmake --build build
- run: ctest --test-dir build -V
timeout-minutes: 3