Skip to content

Commit

Permalink
Validate cibuildwheel process
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Oct 6, 2021
1 parent 4fc25f0 commit 5025833
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,117 @@ jobs:
run: ./ci/build.sh
env:
KRB5_VER: heimdal

# FIXME: Remove once validated that it works
wheel-windows:
runs-on: windows-latest
strategy:
matrix:
name:
- win-wheel-3.10
- win-wheel-3.9
- win-wheel-3.8
- win-wheel-3.7
- win-wheel-3.6
arch:
- win_amd64
- win32
include:
- name: win-wheel-3.10
pyenv: cp310
- name: win-wheel-3.9
pyenv: cp39
- name: win-wheel-3.8
pyenv: cp38
- name: win-wheel-3.7
pyenv: cp37
- name: win-wheel-3.6
pyenv: cp36

steps:
- name: Check out code
uses: actions/checkout@v2

- name: build wheel
uses: pypa/cibuildwheel@v2.1.2
env:
CIBW_ARCHS: all
CIBW_BUILD: ${{ matrix.pyenv }}-${{ matrix.arch }}
CIBW_BUILD_VERBOSITY: 1

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
name: artifact

wheel-macos:
runs-on: macos-10.15

strategy:
matrix:
name:
- macos-wheel-3.10
- macos-wheel-3.9
- macos-wheel-3.8
- macos-wheel-3.7
- macos-wheel-3.6
arch:
- x86_64
- arm64
include:
- name: macos-wheel-3.10
pyenv: cp310
- name: macos-wheel-3.9
pyenv: cp39
- name: macos-wheel-3.8
pyenv: cp38
- name: macos-wheel-3.7
pyenv: cp37
- name: macos-wheel-3.6
pyenv: cp36
exclude:
- name: macos-wheel-3.7
arch: arm64
- name: macos-wheel-3.6
arch: arm64

steps:
- name: Check out code
uses: actions/checkout@v2

- name: build wheel
uses: pypa/cibuildwheel@v2.1.2
env:
CIBW_ARCHS: all
CIBW_TEST_SKIP: '*_arm64'
CIBW_BUILD: ${{ matrix.pyenv }}-macosx_${{ matrix.arch }}
CIBW_BUILD_VERBOSITY: 1

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
name: artifact

release-linux:
needs:
- wheel-windows
- wheel-macos

runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set things up
run: ./ci/run-on-linux.sh ./ci/before-deploy.sh
env:
DISTRO: fedora:latest

- name: Download wheels
uses: actions/download-artifact@v2
with:
name: artifact
path: ./dist

- run: ls -al /dist

0 comments on commit 5025833

Please sign in to comment.