1- name : Build and Upload Wheels to PyPI
1+ name : Build Wheels and upload (if new release) to PyPI
22
33on :
44 workflow_dispatch :
55 push :
6- branches :
7- - main
6+ branches : [main, dev]
7+ pull_request :
8+ branches : [main, dev]
89 release :
910 types :
1011 - published
@@ -14,29 +15,28 @@ jobs:
1415 runs-on : ${{ matrix.os }}
1516 strategy :
1617 matrix :
17- # macos13 is intel macos14 is arm
18- os : [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
19-
18+ os : [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-14, macos-15-intel, macos-latest]
19+ include :
20+ - os : macos-14
21+ llvm : llvm@15
22+ macos_deployment_target : " 14.0"
23+ - os : macos-15-intel
24+ llvm : llvm@18
25+ macos_deployment_target : " 15.0"
26+ - os : macos-latest
27+ llvm : llvm@18
28+ macos_deployment_target : " 15.0"
2029 steps :
2130 - uses : actions/checkout@v4
22-
23- # Set GCC and Deployment Target for macOS 13
24- - name : Set GCC and MACOSX_DEPLOYMENT_TARGET for macOS 13
25- if : matrix.os == 'macos-13'
26- run : |
27- echo "MACOSX_DEPLOYMENT_TARGET=13.6" >> $GITHUB_ENV
2831
29- # Set GCC and Deployment Target for macOS 14
30- - name : Set GCC and MACOSX_DEPLOYMENT_TARGET for macOS 14
31- if : matrix.os == 'macos-14'
32- run : |
33- echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
34-
35- - name : Install libomp for clang (macOS only)
32+ - name : Set compiler on macOS to GCC
3633 if : startsWith(matrix.os, 'macos')
3734 run : |
3835 brew install libomp
39-
36+ echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos_deployment_target }}" >> $GITHUB_ENV
37+ echo "CC=gcc-15" >> $GITHUB_ENV
38+ echo "CXX=g++-15" >> $GITHUB_ENV
39+
4040 - name : Build wheels
4141 uses : pypa/cibuildwheel@v2.23.3
4242 with :
4545 config-file : " {package}/pyproject.toml"
4646 env :
4747 CIBW_SKIP : " pp*"
48- CIBW_ENVIRONMENT_MACOS : >
49- CC=$(brew --prefix llvm@15)/bin/clang
50- CXX=$(brew --prefix llvm@15)/bin/clang++
51- LDFLAGS="-L$(brew --prefix libomp)/lib"
52- CPPFLAGS="-I$(brew --prefix libomp)/include"
5348 - uses : actions/upload-artifact@v4
5449 with :
5550 name : pyvale-wheels-${{ matrix.os }}-${{ strategy.job-index }}
0 commit comments