-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from P403n1x87/ci/build-wheels
ci: build Python wheels
- Loading branch information
Showing
8 changed files
with
557 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout sources | ||
|
||
- uses: uraimo/[email protected] | ||
name: Build on ${{ matrix.arch }} | ||
name: Build Austin on ${{ matrix.arch }} | ||
id: build-on-arch | ||
with: | ||
arch: ${{ matrix.arch }} | ||
|
@@ -31,6 +31,47 @@ jobs: | |
mkdir -p ./artifacts | ||
run: ARCH=${{ matrix.arch }} bash scripts/build_arch.sh | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Build wheels on ${{ matrix.arch }} | ||
run: | | ||
python3.10 -m venv .venv | ||
source .venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -r scripts/requirements-bw.txt | ||
export VERSION=$(cat src/austin.h | sed -r -n "s/^#define VERSION[ ]+\"(.+)\"/\1/p"); | ||
case ${{ matrix.arch }} in | ||
armv7) | ||
PLATFORM=manylinux_2_17_armv7l.manylinux2014_armv7l | ||
MUSL_PLATFORM=musllinux_1_1_armv7l | ||
;; | ||
aarch64) | ||
PLATFORM=manylinux_2_17_aarch64.manylinux2014_aarch64 | ||
MUSL_PLATFORM=musllinux_1_1_aarch64 | ||
;; | ||
ppc64le) | ||
PLATFORM=manylinux_2_17_ppc64le.manylinux2014_ppc64le | ||
MUSL_PLATFORM=musllinux_1_1_ppc64le | ||
;; | ||
esac | ||
python scripts/build-wheel.py \ | ||
--version=$VERSION \ | ||
--platform=$PLATFORM \ | ||
--files austin:./artifacts/austin austinp:./artifacts/austinp | ||
python scripts/build-wheel.py \ | ||
--version=$VERSION \ | ||
--platform=$MUSL_PLATFORM \ | ||
--files austin:./artifacts/austin.musl | ||
deactivate | ||
- name: Show artifacts | ||
run: | | ||
ls -al ./artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.