Pin documentation build depdencies to versions at time of last successful run (Jul 2023) #167
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-22.04', 'macos-11'] | |
gcc-version: ['10', '11', '12'] | |
python-version: ['3.10'] | |
# test on multiple python versions for a single os compiler combination | |
include: | |
- os: 'ubuntu-22.04' | |
gcc-version: '12' | |
python-version: '3.8' | |
- os: 'ubuntu-22.04' | |
gcc-version: '12' | |
python-version: '3.9' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
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 |