-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.19 KB
/
build_host.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
name: build_host
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build for gcc ${{ matrix.gcc-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
gcc-version: ["12"]
python-version: ["3.11"]
include:
# test older gcc and python version for a single os compiler combination
- os: "ubuntu-latest"
gcc-version: "11"
python-version: "3.10"
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pybind11
run: pip install pybind11
- name: cmake gcc-${{ matrix.gcc-version }}
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
run: |
$CXX --version
mkdir build && cd build &&
cmake -DPYTHON_BINDINGS=1 -Dpybind11_DIR=$(pybind11-config --cmakedir) ../
- name: make
run: cd build && make