-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add test release workflow. Add hack to allow numpy to be built from
sourve without BLAS being present
- Loading branch information
1 parent
11ddf48
commit c94a1ad
Showing
3 changed files
with
119 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# This workflow builds binary wheels for indexed_gzip, | ||
# for different platforms and different Python versions, | ||
# using cibuildwheel. It is triggered manually. | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Build sdist | ||
run: python setup.py sdist | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: sdist | ||
path: ./dist/*.tar.gz | ||
|
||
build_macos_wheels: | ||
name: Build macos wheels | ||
runs-on: macos-latest | ||
|
||
env: | ||
PLATFORM: ${{ matrix.os }} | ||
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Build wheels | ||
run: bash ./.ci/build_wheels.sh | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: ./dist/*.whl | ||
|
||
build_windows_wheels: | ||
name: Build Windows ${{ matrix.arch }} wheels | ||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
arch: ["AMD64", "x86"] | ||
|
||
env: | ||
PLATFORM: windows-latest | ||
CIBW_ARCHS_WINDOWS: ${{ matrix.arch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.10" | ||
- name: Download zlib | ||
run: bash ./.ci/download_zlib.sh | ||
- name: Build wheels | ||
run: bash ./.ci/build_wheels.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: ./dist/*.whl | ||
|
||
build_linux_wheels: | ||
# Typo left in for hilarity | ||
name: Build Linux ${{ matrix.arch }} eels | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
arch: ["x86_64", "i686", "aarch64"] | ||
|
||
env: | ||
PLATFORM: ubuntu-latest | ||
CIBW_ARCHS_LINUX: ${{ matrix.arch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: "3.10" | ||
- name: Set up QEMU for emulated (e.g. ARM) builds | ||
if: ${{ matrix.arch == 'aarch64' }} | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Build wheels | ||
run: bash ./.ci/build_wheels.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: ./dist/*.whl |