-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (51 loc) · 1.36 KB
/
build.yml
File metadata and controls
54 lines (51 loc) · 1.36 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
name: C/C++ CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
compiler:
- { name: Clang, cc: clang, cxx: clang++ }
- { name: GNU, cc: gcc, cxx: g++ }
argument: ["", "NOMPI"]
timeout-minutes: 60
steps:
- name: Install dependencies
run: sudo apt-get install -y libopenmpi-dev pybind11-dev
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Export compiler
run: |
echo CXX=${{ matrix.compiler.cxx }} >> $GITHUB_ENV
echo CC=${{ matrix.compiler.cc }} >> $GITHUB_ENV
- name: Build
run: ./compile_withcmake.sh ${{ matrix.argument }}
build_python:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python build dependencies
run: python -m pip install scikit-build-core pybind11 setuptools-scm
- name: Build and install Python module
run: python -m pip install -e .
- name: Test Python module
run: python python/test_vieclus.py