Skip to content

Commit

Permalink
finialize [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Sep 13, 2024
1 parent 1bc6d6e commit f297150
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ clingo:
pin_run_as_build:
clingo: x.x

MACOSX_DEPLOYMENT_TARGET: 10.15 # [osx]
MACOSX_DEPLOYMENT_TARGET: 10.15 # [osx and not arm64]
MACOSX_DEPLOYMENT_TARGET: 11.3 # [osx and arm64]
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX10.15.sdk # [osx]
- /opt/MacOSX10.15.sdk # [osx and not arm64]
- /opt/MacOSX11.3.sdk # [osx and arm64]
10 changes: 6 additions & 4 deletions .github/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ conda:
- 'macos-latest'
- 'windows-2019'
macosx-sdk:
- 'MacOSX10.15.sdk.tar.xz'
- 'MacOSX11.3.sdk.tar.xz'
channels_release:
- 'potassco'
Expand Down Expand Up @@ -111,10 +112,11 @@ conda:
pin_run_as_build:
clingo: x.x
c_stdlib_version: # [osx]
- 11.3 # [osx]
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX11.3.sdk # [osx]
MACOSX_DEPLOYMENT_TARGET: 10.15 # [osx and not arm64]
MACOSX_DEPLOYMENT_TARGET: 11.3 # [osx and arm64]
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX10.15.sdk # [osx and not arm64]
- /opt/MacOSX11.3.sdk # [osx and arm64]
ppa:
package_name:
Expand Down
4 changes: 2 additions & 2 deletions .github/trigger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ case "$action" in
dev)
branch="${@:$OPTIND+1:1}"
# .github/workflows/cibuildwheel.yml
#dispatch 35181474 "$wip" "$branch"
dispatch 35181474 "$wip" "$branch"
# .github/workflows/conda-dev.yml
dispatch 5943107 "$wip" "$branch"
# .github/workflows/ppa-dev.yml
#dispatch 5947898 "$wip" "$branch"
dispatch 5947898 "$wip" "$branch"
;;
esac
29 changes: 28 additions & 1 deletion .github/workflows/conda-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-2019
python-version: ['3.8']

steps:
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Install prerequisites
shell: pwsh
run: |
conda config --set anaconda_upload no
conda config --set anaconda_upload yes
conda install conda-build anaconda-client
- name: Install macos SDK
Expand All @@ -53,6 +55,22 @@ jobs:
conda info
conda list
- name: publish conda package (wip)
if: ${{ github.event.inputs.wip == 'true' }}
shell: pwsh
run: |
python .github/conda.py
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

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

- name: publish conda package (wip; osx-64)
if: ${{ github.event.inputs.wip == 'true' && matrix.os == 'macos-latest' }}
shell: pwsh
Expand All @@ -61,3 +79,12 @@ jobs:
env:
CONDA_SUBDIR: osx-64
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

- name: publish conda package (release; osx-64)
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 f297150

Please sign in to comment.