Skip to content

Commit

Permalink
fix conda builds for windows and macos (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk authored Jun 20, 2024
1 parent e918de8 commit 4dd0429
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ python:

# from https://github.com/phracker/MacOSX-SDKs
CONDA_BUILD_SYSROOT:
- /opt/MacOSX10.9.sdk # [osx]
- /opt/MacOSX11.3.sdk # [osx and arm64]
- /opt/MacOSX10.9.sdk # [osx and not arm64]
24 changes: 22 additions & 2 deletions .github/workflows/conda-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- windows-2019
python-version: ['3.8']

steps:
Expand All @@ -44,8 +44,10 @@ jobs:
if: ${{ matrix.os == 'macos-latest' }}
shell: pwsh
run: |
Invoke-WebRequest -Uri 'https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.9.sdk.tar.xz' -OutFile 'MacOSX10.9.sdk.tar.xz'
Invoke-WebRequest -Uri 'https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.9.sdk.tar.xz' -OutFile 'MacOSX10.9.sdk.tar.xz'
Invoke-WebRequest -Uri 'https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz' -OutFile 'MacOSX11.3.sdk.tar.xz'
sudo tar xf MacOSX10.9.sdk.tar.xz -C /opt
sudo tar xf MacOSX11.3.sdk.tar.xz -C /opt
- name: print info
shell: pwsh
Expand All @@ -68,3 +70,21 @@ jobs:
python .github/conda.py --release
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

- name: publish conda package (wip)
if: ${{ github.event.inputs.wip == 'true' && matrix.os == 'macos-latest' }}
shell: pwsh
run: |
python .github/conda.py
env:
CONDA_SUBDIR: osx-64
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

- name: publish conda package (release)
if: ${{ github.event.inputs.wip == 'false' && matrix.os == 'macos-latest' }}
shell: pwsh
run: |
python .github/conda.py --release
env:
CONDA_SUBDIR: osx-64
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

0 comments on commit 4dd0429

Please sign in to comment.