-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (50 loc) · 1.51 KB
/
linux.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
name: Linux
on:
push:
pull_request:
schedule:
- cron: '0 0 1,15 * *' # JST 9:00 AM, 1st and 15th of every month
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
python-version: ["3.10"]
compiler: ["g++-12", "g++-9"]
exclude:
- os: "ubuntu-20.04"
compiler: "g++-12"
include:
- os: "ubuntu-22.04"
python-version: "3.7"
compiler: "g++-12"
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: apt
run: |
sudo apt update
sudo apt install openmpi-bin libopenmpi-dev libscalapack-openmpi-dev
- name: pip install
run: |
python -m pip install -U pip
python -m pip install numpy scipy toml
- name: make workspace
run: cmake -E make_directory ${{runner.workspace}}/build
- name: cmake
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_VERBOSE_MAKEFILE=ON $GITHUB_WORKSPACE
- name: build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build ./ -j4
- name: ctest
working-directory: ${{runner.workspace}}/build
shell: bash
run: OMP_NUM_THREADS=1 ctest -V