Skip to content

Commit

Permalink
add some env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 22, 2024
1 parent 21a016b commit c6249b7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
shell: bash -l {0}
run: |
echo "FC=$(which gfortran-13)" >> $GITHUB_ENV
echo "FC=$(which gfortran-14)" >> $GITHUB_ENV
# hdf5 is needed for building tables
brew install hdf5
Expand All @@ -40,13 +40,22 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.18.0
env:
CIBW_BUILD_VERBOSITY: 1
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"

- uses: actions/upload-artifact@v4
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

0 comments on commit c6249b7

Please sign in to comment.