testing linker. #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Wheels | |
on: | |
push: | |
branches: [ test-github-actions ] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# macos13 is intel macos14 is apple silicon | |
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
# Set GCC and Deployment Target for macOS 13 | |
- name: Set GCC and MACOSX_DEPLOYMENT_TARGET for macOS 13 | |
if: matrix.os == 'macos-13' | |
run: | | |
echo "CC=gcc-14" >> $GITHUB_ENV | |
echo "CXX=g++-14" >> $GITHUB_ENV | |
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> $GITHUB_ENV | |
# Set GCC and Deployment Target for macOS 14 | |
- name: Set GCC and MACOSX_DEPLOYMENT_TARGET for macOS 14 | |
if: matrix.os == 'macos-14' | |
run: | | |
echo "CC=gcc-14" >> $GITHUB_ENV | |
echo "CXX=g++-14" >> $GITHUB_ENV | |
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.23.3 | |
with: | |
package-dir: . | |
output-dir: wheelhouse | |
config-file: "{package}/pyproject.toml" | |
env: | |
CIBW_ENVIRONMENT_MACOS: > | |
CC=$(which gcc-14) | |
CXX=$(which g++-14) | |
LDSHARED="CXX -shared" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pyvale-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |