diff --git a/.github/conda/conda_build_config.yaml b/.github/conda/conda_build_config.yaml index 33a12a72..882e9846 100644 --- a/.github/conda/conda_build_config.yaml +++ b/.github/conda/conda_build_config.yaml @@ -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] diff --git a/.github/workflows/conda-dev.yml b/.github/workflows/conda-dev.yml index 9444bda7..67df75fd 100644 --- a/.github/workflows/conda-dev.yml +++ b/.github/workflows/conda-dev.yml @@ -18,7 +18,7 @@ jobs: os: - ubuntu-latest - macos-latest - - windows-latest + - windows-2019 python-version: ['3.8'] steps: @@ -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 @@ -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 }}