Skip to content

Commit 38c2ba4

Browse files
authoredOct 10, 2024··
Separate Python 3.7 build workflow (#1235)
1 parent 573d5f0 commit 38c2ba4

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed
 

‎.github/workflows/deploy-python.yml

+34-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,45 @@ on:
2020
- published
2121

2222
jobs:
23-
build-linux-py3:
23+
build-linux-py3-legacy:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
2727
wheel:
2828
- cp37-manylinux
2929
- cp37-musllinux
30+
31+
steps:
32+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
33+
with:
34+
persist-credentials: false
35+
fetch-depth: 0
36+
37+
- name: Setup QEMU
38+
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # 3.0.0
39+
40+
- name: Build Wheels
41+
uses: pypa/cibuildwheel@8d945475ac4b1aac4ae08b2fd27db9917158b6ce # 2.17.0
42+
env:
43+
CIBW_PLATFORM: linux
44+
CIBW_BUILD: "${{ matrix.wheel }}*"
45+
CIBW_ARCHS_LINUX: x86_64 aarch64
46+
CIBW_ENVIRONMENT: "LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib"
47+
CIBW_TEST_REQUIRES: pytest
48+
CIBW_TEST_COMMAND: "PYTHONPATH={project}/tests pytest {project}/tests/agent_unittests -vx"
49+
50+
- name: Upload Artifacts
51+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # 4.3.1
52+
with:
53+
name: ${{ github.job }}-${{ matrix.wheel }}
54+
path: ./wheelhouse/*.whl
55+
retention-days: 1
56+
57+
build-linux-py3:
58+
runs-on: ubuntu-latest
59+
strategy:
60+
matrix:
61+
wheel:
3062
- cp38-manylinux
3163
- cp38-musllinux
3264
- cp39-manylinux
@@ -102,6 +134,7 @@ jobs:
102134
runs-on: ubuntu-latest
103135

104136
needs:
137+
- build-linux-py3-legacy
105138
- build-linux-py3
106139
- build-sdist
107140

0 commit comments

Comments
 (0)
Please sign in to comment.