-
-
Notifications
You must be signed in to change notification settings - Fork 51
98 lines (74 loc) · 1.88 KB
/
ci.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
name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CMAKE_INSTALL_PREFIX: ~/local
CMAKE_PREFIX_PATH: ~/local
CMAKE_TLS_VERIFY: true
on:
push:
paths:
- "**.c"
- "**.f"
- "**.F"
- "**.f90"
- "**.F90"
- "**.cmake"
- "**.cmake.in"
- "**.txt"
- "cmake/libraries.json"
- ".github/workflows/ci.yml"
- "!scripts/*"
jobs:
core:
timeout-minutes: 15
strategy:
matrix:
scotch: [false]
metis: [false]
parallel: [true]
lapack_vendor: [""]
os: [ubuntu-24.04, macos-latest]
include:
- scotch: true
os: ubuntu-24.04
- metis: true
os: ubuntu-24.04
- lapack_vendor: "OpenBLAS"
os: ubuntu-24.04
- parallel: false
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
env:
FC: gfortran-13
steps:
- uses: actions/checkout@v4
- name: install prereqs
uses: ./.github/workflows/composite-deps
- name: build and install
uses: ./.github/workflows/composite-build
- name: build example
uses: ./.github/workflows/composite-example
cmake-older:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
cmake_version: ["3.20.6"]
steps:
- uses: actions/checkout@v4
- name: prereqs except scalapack
run: |
sudo apt-get update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev
- uses: ./.github/workflows/composite-cmake
- name: configure
run: $CMAKE -Bbuild -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/build/local
- name: build
run: $CMAKE --build build
- name: test
run: $CTEST --test-dir build
- name: install package
run: $CMAKE --install build