Skip to content

Commit

Permalink
chore: create a way to reproduce windows build issue in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Sep 28, 2024
1 parent 1b0be81 commit 0278f0a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cibuildwheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_ARCHS_LINUX: all
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform.name }}
Expand Down
32 changes: 29 additions & 3 deletions .github/workflows/test-wheels.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
name: Run tests (emulated)
# Test wheels various architectures by building out binaries with cibuildwheel.
name: test-wheels

on:
# Trigger the workflow on master but also allow it to run manually.
workflow_dispatch:
push:
branches:
- master

# TODO(vytas): Remove from PR when ready
pull_request:
branches:
- master
jobs:
# TODO(vytas): Clean up when ready, just fail this fast on the WiP PR for now.
test-windows:
name: "cibuildwheel: ${{ matrix.platform }}"
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
platform:
- "cp313-win_amd64"

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Build wheels
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_ARCHS_LINUX: all
CIBW_BUILD: ${{ matrix.platform }}

test-emulated:
name: "cibuildwheel: ${{ matrix.platform }}"
runs-on: ubuntu-latest
Expand All @@ -30,7 +56,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
uses: pypa/cibuildwheel@v2.21.1
env:
CIBW_ARCHS_LINUX: all
CIBW_BUILD: ${{ matrix.platform }}

0 comments on commit 0278f0a

Please sign in to comment.