Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build-wheel workflow
Browse files Browse the repository at this point in the history
toadharvard committed Nov 19, 2023
1 parent 2c51006 commit 53d7dbb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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 ${{github.workspace}}/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
ls -la
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 /lib && ls -la && cd 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"

0 comments on commit 53d7dbb

Please sign in to comment.