Skip to content

Build wheels in workflow #2

Build wheels in workflow

Build wheels in workflow #2

Workflow file for this run

name: Wheel
on: [ push, pull_request ]
jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@v3
- name: Download libraries
uses: ./.github/composite-actions/download-libraries
with:
download-pybind: true
download-googletest: false
- name: Cache unpacked Boost
uses: actions/cache@v3
id: cache-unpacked-boost
with:
path: ${{github.workspace}}/lib/boost_1_78_0
key: ${{ runner.os }}-boost-for-wheels-78
- name: Download & Unpack Boost
run: |
cd lib
wget -O boost_1_78_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.78.0/boost_1_78_0.tar.gz/download
tar xzf boost_1_78_0.tar.gz
shell: bash
if: steps.cache-unpacked-boost.outputs.cache-hit != 'true'
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD: "cd ${{github.workspace}}/lib/boost_1_78_0 && sudo ./bootstrap.sh --prefix=/usr/local > /dev/null && sudo ./b2 install --prefix=/usr/local > /dev/null"
CIBW_TEST_COMMAND: "python3 src/python_bindings/test_bindings.py"