Skip to content

Commit

Permalink
Actions: Add windows build
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Aug 3, 2024
1 parent 1891a4a commit c74ba7b
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Windows Build

on:
workflow_dispatch:


jobs:
buildWin:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
architecture: ['x64']
include:
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
- os: windows-latest
skip: "*win32 pp*"

name: ${{ matrix.os }} ${{ matrix.architecture}}
env:
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
CIBW_BEFORE_ALL: "pip install cython"
CIBW_SKIP: ${{ matrix.skip }}
CIBW_ARCHS_LINUX: ${{ matrix.linux_archs }}
CIBW_TEST_SKIP: "*"
CIBW_BEFORE_TEST: "git status"

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2

- name: delvewheel install
if: runner.os == 'Windows'
run: |
python -m pip install delvewheel cython
- name: Build wheels
uses: joerick/[email protected]

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

0 comments on commit c74ba7b

Please sign in to comment.