-
Notifications
You must be signed in to change notification settings - Fork 72
42 lines (35 loc) · 1.3 KB
/
wheel.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
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"