forked from google/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c19cfee
commit 8034ba1
Showing
1 changed file
with
12 additions
and
55 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,7 +18,7 @@ jobs: | |
- name: Install Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
python-version: "3.12" | ||
- run: python -m pip install build | ||
- name: Build sdist | ||
run: python -m build --sdist | ||
|
@@ -40,68 +40,23 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
name: Install Python 3.12 | ||
with: | ||
python-version: "3.12" | ||
- run: pip install --upgrade pip uv | ||
|
||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Build 3.8 wheels on ${{ matrix.os }} using cibuildwheel | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "cp38-*" | ||
CIBW_SKIP: "*-musllinux_*" | ||
CIBW_TEST_SKIP: "cp38-macosx_*:arm64" | ||
CIBW_ARCHS_LINUX: auto64 aarch64 | ||
CIBW_ARCHS_WINDOWS: auto64 | ||
CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh | ||
# Grab the rootless Bazel installation inside the container. | ||
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin | ||
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py | ||
|
||
- name: Build 3.9 wheels on ${{ matrix.os }} using cibuildwheel | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "cp39-*" | ||
CIBW_SKIP: "*-musllinux_*" | ||
CIBW_TEST_SKIP: "cp38-macosx_*:arm64" | ||
CIBW_ARCHS_LINUX: auto64 aarch64 | ||
CIBW_ARCHS_WINDOWS: auto64 | ||
CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh | ||
# Grab the rootless Bazel installation inside the container. | ||
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin | ||
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py | ||
|
||
- name: Build 3.10 wheels on ${{ matrix.os }} using cibuildwheel | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "cp310-*" | ||
CIBW_SKIP: "*-musllinux_*" | ||
CIBW_TEST_SKIP: "cp38-macosx_*:arm64" | ||
CIBW_ARCHS_LINUX: auto64 aarch64 | ||
CIBW_ARCHS_WINDOWS: auto64 | ||
CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh | ||
# Grab the rootless Bazel installation inside the container. | ||
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin | ||
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py | ||
|
||
- name: Build 3.11 wheels on ${{ matrix.os }} using cibuildwheel | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "cp311-*" | ||
CIBW_SKIP: "*-musllinux_*" | ||
CIBW_TEST_SKIP: "cp38-macosx_*:arm64" | ||
CIBW_ARCHS_LINUX: auto64 aarch64 | ||
CIBW_ARCHS_WINDOWS: auto64 | ||
CIBW_BEFORE_ALL_LINUX: bash .github/install_bazel.sh | ||
# Grab the rootless Bazel installation inside the container. | ||
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin | ||
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py | ||
|
||
- name: Build 3.12 wheels on ${{ matrix.os }} using cibuildwheel | ||
- name: Build wheels on ${{ matrix.os }} using cibuildwheel | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "cp312-*" | ||
CIBW_BUILD: "cp310-* cp311-* cp312-*" | ||
CIBW_BUILD_FRONTEND: "build[uv]" | ||
CIBW_SKIP: "*-musllinux_*" | ||
CIBW_TEST_SKIP: "cp38-macosx_*:arm64" | ||
CIBW_ARCHS_LINUX: auto64 aarch64 | ||
|
@@ -110,6 +65,7 @@ jobs: | |
# Grab the rootless Bazel installation inside the container. | ||
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/bin | ||
CIBW_TEST_COMMAND: python {project}/bindings/python/google_benchmark/example.py | ||
MACOSX_DEPLOYMENT_TARGET: "10.14" | ||
|
||
- name: Upload Google Benchmark ${{ matrix.os }} wheels | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -133,6 +89,7 @@ jobs: | |
name: Publish google-benchmark wheels to PyPI | ||
needs: [merge_wheels] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
|