Skip to content

add some env var

add some env var #7

Workflow file for this run

name: Build wheels
on:
# allows running workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
paths-ignore:
- docs/**
push:
branches:
- scikit-build-core
paths-ignore:
- docs/**
jobs:
main:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- name: Additional macOS settings
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
shell: bash -l {0}
run: |
echo "FC=$(which gfortran-14)" >> $GITHUB_ENV
# hdf5 is needed for building tables
brew install hdf5
- name: Checkout repository
uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.18.0
env:
CIBW_BUILD: "cp*"
CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
CIBW_ARCHS_MACOS: "native"
CIBW_ENVIRONMENT_MACOS: "LD_LIBRARY_PATH=/usr/local/Cellar/gcc/14.1.0/lib/gcc/current/:$LD_LIBRARY_PATH"
CIBW_BUILD_FRONTEND: "build"
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest -ra {project}/tests"
with:
package-dir: .
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl