-
Notifications
You must be signed in to change notification settings - Fork 138
63 lines (55 loc) · 1.96 KB
/
wheels.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and Publish wheels for ad-rss-lib Library
on:
release:
types: [published]
push:
branches: master
pull_request:
branches: master
permissions:
contents: read
jobs:
wheels:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- python_binding_version: 3.8
- python_binding_version: 3.10
env:
WHEEL_PLATFORM: manylinux_2_28_x86_64
PYTHON_BINDING_VERSION: ${{ matrix.python_binding_version }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
submodules: recursive
- name: Install Dependencies
run: bash .github/workflows/install_dependencies.sh
- name: Build wheels
shell: bash
run: |
colcon build --packages-select PROJ4 --event-handlers console_direct+ --cmake-args -DCMAKE_POSITION_INDEPENDENT_CODE=ON
source install/setup.bash
colcon build --packages-up-to ad_rss_map_integration --meta colcon_python.meta --event-handlers console_direct+ --cmake-args -DPYTHON_BINDING_VERSION=${PYTHON_BINDING_VERSION}
- name: Repair wheels
shell: bash
run: |
source install/setup.bash
for whl in install/ad_rss/dist/*.whl; do
auditwheel repair $whl --plat ${WHEEL_PLATFORM} --wheel-dir wheelhouse
done
for whl in install/ad_rss_map_integration/dist/*.whl; do
auditwheel repair $whl --plat ${WHEEL_PLATFORM} --wheel-dir wheelhouse
done
# - name: Publish wheels to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# if: ${{ github.event_name == 'release'}}
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# packages_dir: wheelhouse/