Skip to content

Commit

Permalink
Update workflow for building wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk committed Dec 1, 2024
1 parent 1f03744 commit 90afbe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ jobs:
- name: Upload coverage report
if: ${{ matrix.build-type == 'coverage' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}


python:
Expand Down Expand Up @@ -307,4 +309,6 @@ jobs:
- run: pip3 install coverage

- name: Upload coverage report
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
21 changes: 7 additions & 14 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,8 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-12
- macos-latest
python: ['38', '39', '310', '311', '312', '313']
exclude:
- os: windows-latest
python: '39'
- os: windows-latest
python: '310'
- os: macos-latest
python: '38'
- macos-13
- macos-14

defaults:
run:
Expand All @@ -103,19 +95,20 @@ jobs:
env:
CIBW_CONFIG_SETTINGS: setup-args="-Ds-dftd3:openmp=false"
CIBW_ARCHS: auto64
CIBW_BUILD: "*${{ matrix.python }}-*"
CIBW_SKIP_MACOS: ${{ matrix.os == 'macos-14' && 'cp38-*' || '' }}
CIBW_SKIP_WINDOWS: 'cp37-*'
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-latest' && 'arm64' || 'x86_64' }}
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-14' && 'arm64' || 'x86_64' }}
CIBW_ENVIRONMENT_MACOS: >
CC=gcc-14 CXX=g++-14 FC=gfortran-14
MACOSX_DEPLOYMENT_TARGET=${{ matrix.os == 'macos-latest' && '14.0' || '12.0' }}
MACOSX_DEPLOYMENT_TARGET=${{ matrix.os == 'macos-14' && '14.0' || '13.0' }}
CIBW_BEFORE_ALL_MACOS: brew install gcc@14
CIBW_BEFORE_BUILD_WINDOWS: choco upgrade mingw && pip install delvewheel
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel show {wheel} && delvewheel repair -w {dest_dir} {wheel} --no-mangle-all"

- uses: actions/upload-artifact@v4
with:
name: dftd3-python-${{ matrix.os }}-${{ matrix.python }}
name: dftd3-python-${{ matrix.os }}
path: "*.whl"

release:
Expand Down

0 comments on commit 90afbe6

Please sign in to comment.