-
Notifications
You must be signed in to change notification settings - Fork 30
59 lines (45 loc) · 1.5 KB
/
build.yml
File metadata and controls
59 lines (45 loc) · 1.5 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
54
55
56
57
58
59
name: CMake build
on: [push, pull_request]
jobs:
ubuntu:
name: ubuntu (build and test)
runs-on: ubuntu-latest
strategy:
matrix:
compiler:
- gcc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y cmake gfortran libopenblas-dev libarpack2-dev libsuperlu-dev libsuitesparse-dev
- name: Configure
run: cmake -B build
-D ENABLE_SUPERLU=ON
-D ENABLE_CHOLMOD=ON
-D ENABLE_UMFPACK=ON
-D CMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build --config Debug
- name: Test
run: ctest --test-dir build --output-on-failure -C Debug
macos:
name: macos (build and test)
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: brew install cmake openblas arpack superlu suite-sparse
- name: Configure
run: cmake -B build
-D ENABLE_SUPERLU=ON
-D ENABLE_CHOLMOD=ON
-D ENABLE_UMFPACK=ON
-D CMAKE_BUILD_TYPE=Debug
-D BLA_VENDOR=OpenBLAS
-D CMAKE_PREFIX_PATH="/usr/local/opt/lapack;/usr/local/opt/openblas"
- name: Build
run: cmake --build build --config Debug
- name: Test
run: ctest --test-dir build --output-on-failure -C Debug