Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 8 additions & 47 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 17 additions & 109 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
matrix:
include:
- CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno
CONFIG_SHORT: linux_64_build_typedebugchannel_targetsc_h10d856d4
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -36,9 +35,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes
CONFIG_SHORT: linux_64_build_typedebugchannel_targetsc_hf83d9e2d
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -49,9 +47,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno
CONFIG_SHORT: linux_64_build_typereleasechannel_target_h01f3c156
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -62,9 +59,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes
CONFIG_SHORT: linux_64_build_typereleasechannel_target_hf5ff4d16
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -75,9 +71,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno
CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_hd2db0a21
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -88,9 +83,8 @@ jobs:
runs_on: ['ubuntu-24.04-arm']
tools_install_dir: ~/miniforge3
- CONFIG: linux_aarch64_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes
CONFIG_SHORT: linux_aarch64_build_typedebugchannel_tar_h51de9693
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -101,9 +95,8 @@ jobs:
runs_on: ['ubuntu-24.04-arm']
tools_install_dir: ~/miniforge3
- CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingno
CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_hccc48f4a
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -114,9 +107,8 @@ jobs:
runs_on: ['ubuntu-24.04-arm']
tools_install_dir: ~/miniforge3
- CONFIG: linux_aarch64_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes
CONFIG_SHORT: linux_aarch64_build_typereleasechannel_t_h78d2c7f5
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-aarch64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -127,9 +119,8 @@ jobs:
runs_on: ['ubuntu-24.04-arm']
tools_install_dir: ~/miniforge3
- CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingno
CONFIG_SHORT: linux_ppc64le_build_typedebugchannel_tar_hac8bb296
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -140,9 +131,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_ppc64le_build_typedebugchannel_targetsconda-forge_python_debugfreethreadingyes
CONFIG_SHORT: linux_ppc64le_build_typedebugchannel_tar_hb74ed675
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -153,9 +143,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingno
CONFIG_SHORT: linux_ppc64le_build_typereleasechannel_t_h5454d1d5
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -166,9 +155,8 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: linux_ppc64le_build_typereleasechannel_targetsconda-forge_mainfreethreadingyes
CONFIG_SHORT: linux_ppc64le_build_typereleasechannel_t_hed84b2c3
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma10
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_workspace_dir: build_artifacts
docker_run_args:
Expand All @@ -179,8 +167,7 @@ jobs:
runs_on: ['ubuntu-latest']
tools_install_dir: ~/miniforge3
- CONFIG: win_64_freethreadingno
CONFIG_SHORT: win_64_freethreadingno
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_platform: win-64
build_workspace_dir: D:\\bld\\
Expand All @@ -192,8 +179,7 @@ jobs:
runs_on: ['windows-2022']
tools_install_dir: D:\Miniforge
- CONFIG: win_64_freethreadingyes
CONFIG_SHORT: win_64_freethreadingyes
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_platform: win-64
build_workspace_dir: D:\\bld\\
Expand All @@ -205,8 +191,7 @@ jobs:
runs_on: ['windows-2022']
tools_install_dir: D:\Miniforge
- CONFIG: win_arm64_freethreadingno
CONFIG_SHORT: win_arm64_freethreadingno
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_platform: win-64
build_workspace_dir: D:\\bld\\
Expand All @@ -218,8 +203,7 @@ jobs:
runs_on: ['windows-2022']
tools_install_dir: D:\Miniforge
- CONFIG: win_arm64_freethreadingyes
CONFIG_SHORT: win_arm64_freethreadingyes
STORE_BUILD_ARTIFACTS: True
STORE_BUILD_ARTIFACTS: False
UPLOAD_PACKAGES: True
build_platform: win-64
build_workspace_dir: D:\\bld\\
Expand Down Expand Up @@ -325,80 +309,4 @@ jobs:
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: 'true'
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}

- name: Determine build outcome
# this is to merge the status of the linux/osx/win builds into
# something we can easily reuse during artefact generation
id: determine-status
if: ${{ always() }}
shell: bash
env:
OS: ${{ matrix.os }}
run: |
if [[ "$OS" == "ubuntu" ]]; then
STATUS=${{ steps.build-linux.outcome }}
elif [[ "$OS" == "macos" ]]; then
STATUS=${{ steps.build-macos.outcome }}
elif [[ "$OS" == "windows" ]]; then
STATUS=${{ steps.build-windows.outcome }}
fi
if [ -z "$STATUS" ]; then
# steps that never ran will have empty status
STATUS="cancelled"
fi
echo "status=$STATUS" >> $GITHUB_OUTPUT

- name: Prepare conda build artifacts
continue-on-error: true
id: prepare-artifacts
shell: bash
# we do not want to trigger artefact creation if the build was cancelled
if: ${{ always() && steps.determine-status.outputs.status != 'cancelled' && matrix.STORE_BUILD_ARTIFACTS }}
env:
CI: github_actions
CONDA_BLD_PATH: ${{ matrix.build_workspace_dir }}
CONFIG: ${{ matrix.CONFIG }}
CONFIG_SHORT: ${{ matrix.CONFIG_SHORT }}
JOB_STATUS: ${{ steps.determine-status.outputs.status }}
OS: ${{ matrix.os }}
run: |
export ARTIFACT_STAGING_DIR="$GITHUB_WORKSPACE"
export CI_RUN_ID=$GITHUB_RUN_ID
export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}"
export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}"
# Archive everything in CONDA_BLD_PATH except environments
# Archive the CONDA_BLD_PATH environments only when the job fails
# Use different prefix for successful and failed build artifacts
# so random failures don't prevent rebuilds from creating artifacts.
if [ $JOB_STATUS == "failure" ]; then
export BLD_ARTIFACT_PREFIX="conda_artifacts"
export ENV_ARTIFACT_PREFIX="conda_envs"
else
export BLD_ARTIFACT_PREFIX="conda_pkgs"
fi
if [ $OS == "windows" ]; then
pwsh -Command ". '.scripts/create_conda_build_artifacts.bat'"
else
./.scripts/create_conda_build_artifacts.sh
fi

- name: Store conda build artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ always() && steps.prepare-artifacts.outcome == 'success' }}
with:
name: ${{ steps.prepare-artifacts.outputs.BLD_ARTIFACT_NAME }}
path: ${{ steps.prepare-artifacts.outputs.BLD_ARTIFACT_PATH }}
retention-days: 14
continue-on-error: true

- name: Store conda build environment artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
# only relevant if build failed, see above
if: ${{ always() && steps.determine-status.outputs.status == 'failure' && steps.prepare-artifacts.outcome == 'success' }}
with:
name: ${{ steps.prepare-artifacts.outputs.ENV_ARTIFACT_NAME }}
path: ${{ steps.prepare-artifacts.outputs.ENV_ARTIFACT_PATH }}
retention-days: 14
continue-on-error: true
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
Loading
Loading