Add sensor index and clearer output to psinfo #242
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |