Skip to content

Commit

Permalink
CI: test windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Apr 15, 2024
1 parent 628172a commit 8e52828
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
matrix:
# host-os: ["ubuntu-latest", "windows-latest", "macos-13", "macos-14"]
# host-os: ["ubuntu-latest", "macos-13", "macos-14"]
host-os: ["macos-14"]
# host-os: ["macos-14"]
host-os: ["windows-latest"]
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
openmp: ["off"]
fail-fast: false
Expand All @@ -38,6 +39,12 @@ jobs:
export MODE="omp"
echo "MODE=${MODE}" >> $GITHUB_ENV
- name: Set up Visual Studio shell
if: runner.os == 'Windows'
uses: egor-tensin/vs-shell@v2
with:
arch: x64

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
with:
Expand All @@ -48,15 +55,15 @@ jobs:
name: srwpy-wheels-${{ matrix.host-os }}
path: ./wheelhouse/*.whl

- name: Check built libs
if: runner.os == 'macOS'
run: |
set -vxeuo pipefail
cd wheelhouse/
unzip srwpy-4.1.0-cp38-cp38-*.whl
whl=srwpy/srwlpy.so
file $whl
otool -L $whl
# - name: Check built libs
# if: runner.os == 'macOS'
# run: |
# set -vxeuo pipefail
# cd wheelhouse/
# unzip srwpy-4.1.0-cp38-cp38-*.whl
# whl=srwpy/srwlpy.so
# file $whl
# otool -L $whl

# TODO: add sdist generation/uploading step

Expand Down Expand Up @@ -147,8 +154,9 @@ jobs:
strategy:
matrix:
# host-os: ["ubuntu-latest", "windows-latest", "macos-13", "macos-14"]
host-os: ["ubuntu-latest", "macos-13", "macos-14"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
# host-os: ["ubuntu-latest", "macos-13", "macos-14"]
host-os: ["windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false

defaults:
Expand Down

0 comments on commit 8e52828

Please sign in to comment.