Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
haohanyang committed Nov 21, 2024
1 parent 2cd78cc commit 3aeae67
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,26 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest, windows-latest, ubuntu-latest, macos-13]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Build wheels
- name: Build wheels on non M1 macOS machine
uses: pypa/[email protected]
if: matrix.os != 'macos-latest'
env:
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_MACOS: x86_64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_LINUX: x86_64
- name: Build wheels on M1 macOS machine
uses: pypa/[email protected]
if: matrix.os == 'macos-latest'
env:
CIBW_ARCHS_MACOS: arm64
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -65,7 +71,7 @@ jobs:
- name: Generate artifact attestation for sdist and wheels
uses: actions/attest-build-provenance@v1
with:
subject-path: "dist/*"
subject-path: 'dist/*'
- name: Publish package to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ jobs:
run: python script.py version ${{ github.event.inputs.package_version }}
- name: Build wheels on non M1 macOS machine
uses: pypa/[email protected]
if: ${{ matrix.os }} != 'macos-latest'
if: matrix.os != 'macos-latest'
env:
CIBW_BUILD: cp312-*
CIBW_ARCHS_MACOS: 'x86_64'
CIBW_ARCHS_MACOS: x86_64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_LINUX: x86_64
- name: Build wheels on M1 macOS machine
uses: pypa/[email protected]
if: ${{ matrix.os }} == 'macos-latest'
if: matrix.os == 'macos-latest'
env:
CIBW_BUILD: cp312-*
CIBW_ARCHS_MACOS: 'arm64'
CIBW_ARCHS_MACOS: arm64
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ pybind11_add_module(_iphreeqc MODULE "${CMAKE_SOURCE_DIR}/src/main.cpp")

add_dependencies(_iphreeqc IPhreeqcBuild)

target_link_directories(_iphreeqc PRIVATE "${CMAKE_SOURCE_DIR}/iphreeqc-install/lib")
target_link_directories(_iphreeqc
PRIVATE "${CMAKE_SOURCE_DIR}/iphreeqc-install/lib"
PRIVATE "${CMAKE_SOURCE_DIR}/iphreeqc-install/lib64"
)

target_include_directories(_iphreeqc PRIVATE "${CMAKE_SOURCE_DIR}/iphreeqc-install/include")

Expand Down

0 comments on commit 3aeae67

Please sign in to comment.