mirror of
https://github.com/langchain-ai/staged-recipes.git
synced 2026-07-01 20:54:22 -04:00
CI: Revert changes to the CI
This commit is contained in:
@@ -1,29 +1,10 @@
|
||||
jobs:
|
||||
- job: linux
|
||||
- job: linux_64
|
||||
condition: not(eq(variables['Build.SourceBranch'], 'refs/heads/main'))
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
timeoutInMinutes: 360
|
||||
strategy:
|
||||
matrix:
|
||||
linux_64:
|
||||
CONFIG: linux_64
|
||||
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
LINUX_ARTIFACT: conda_pkgs_linux_64
|
||||
linux_aarch64:
|
||||
CONFIG: linux_aarch64
|
||||
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
LINUX_ARTIFACT: conda_pkgs_linux_aarch64
|
||||
|
||||
steps:
|
||||
# configure qemu binfmt-misc running. This allows us to run docker containers
|
||||
# with embedded qemu-static (aarch64 only)
|
||||
- script: |
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
|
||||
ls /proc/sys/fs/binfmt_misc/
|
||||
displayName: Configure binfmt_misc
|
||||
condition: not(startsWith(variables['CONFIG'], 'linux_64'))
|
||||
|
||||
- script: |
|
||||
sudo mkdir -p /opt/empty_dir
|
||||
for d in \
|
||||
@@ -62,30 +43,27 @@ jobs:
|
||||
- script: |
|
||||
set -e
|
||||
|
||||
ARTIFACT_DIR="${CONFIG//_/-}"
|
||||
echo "##vso[task.setvariable variable=ARTIFACT_DIR]$ARTIFACT_DIR"
|
||||
|
||||
# make sure there is a package directory so that artifact publishing works
|
||||
mkdir -p build_artifacts/{noarch,$ARTIFACT_DIR}/
|
||||
mkdir -p build_artifacts/{noarch,linux-64}/
|
||||
|
||||
export CI=azure
|
||||
export CONFIG=$(CONFIG)
|
||||
export DOCKER_IMAGE=$(DOCKER_IMAGE)
|
||||
export CONFIG=linux64
|
||||
export DOCKER_IMAGE=quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
export AZURE=True
|
||||
.scripts/run_docker_build.sh
|
||||
|
||||
displayName: Run docker build
|
||||
name: linux_build
|
||||
name: linux_64_build
|
||||
|
||||
- publish: build_artifacts/$(ARTIFACT_DIR)/
|
||||
artifact: $(LINUX_ARTIFACT)
|
||||
- publish: build_artifacts/linux-64/
|
||||
artifact: conda_pkgs_linux
|
||||
|
||||
- publish: build_artifacts/noarch/
|
||||
artifact: conda_pkgs_noarch
|
||||
|
||||
- job: linux_64_cuda_129
|
||||
dependsOn: linux
|
||||
condition: and(not(eq(variables['Build.SourceBranch'], 'refs/heads/main')), eq(dependencies.linux.outputs['linux.linux_build.NEED_CUDA'], '1'))
|
||||
dependsOn: linux_64
|
||||
condition: and(not(eq(variables['Build.SourceBranch'], 'refs/heads/main')), eq(dependencies.linux_64.outputs['linux_64_build.NEED_CUDA'], '1'))
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
timeoutInMinutes: 360
|
||||
@@ -125,7 +103,7 @@ jobs:
|
||||
mkdir -p build_artifacts/linux-64/
|
||||
|
||||
export CI=azure
|
||||
export CONFIG=linux_64_cuda_compiler_version12.9
|
||||
export CONFIG=linux64_cuda129
|
||||
export DOCKER_IMAGE=quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
export AZURE=True
|
||||
.scripts/run_docker_build.sh
|
||||
|
||||
@@ -225,7 +225,7 @@ def get_config(arch, channel_urls):
|
||||
arch=arch,
|
||||
exclusive_config_files=exclusive_config_files,
|
||||
channel_urls=channel_urls,
|
||||
error_overlinking=False,
|
||||
error_overlinking=True,
|
||||
)
|
||||
return config
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
c_stdlib_version:
|
||||
- 2.17
|
||||
c_stdlib:
|
||||
- sysroot
|
||||
cdt_name:
|
||||
- conda
|
||||
c_compiler:
|
||||
- gcc
|
||||
cxx_compiler:
|
||||
- gxx
|
||||
fortran_compiler:
|
||||
- gfortran
|
||||
go_compiler:
|
||||
- go-nocgo
|
||||
cgo_compiler:
|
||||
- go-cgo
|
||||
target_platform:
|
||||
- linux-64
|
||||
channel_sources:
|
||||
- conda-forge
|
||||
docker_image:
|
||||
- quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
cuda_compiler:
|
||||
- None
|
||||
cuda_compiler_version:
|
||||
- None
|
||||
cuda_compiler_version_min:
|
||||
- None
|
||||
@@ -19,7 +19,7 @@ target_platform:
|
||||
channel_sources:
|
||||
- conda-forge
|
||||
docker_image:
|
||||
- quay.io/condaforge/linux-anvil-x86_64:alma9
|
||||
- quay.io/condaforge/linux-anvil-aarch64:alma9
|
||||
cuda_compiler:
|
||||
- None
|
||||
cuda_compiler_version:
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/staged-recipes}"
|
||||
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/staged-recipes}"
|
||||
source "${FEEDSTOCK_ROOT}/.scripts/logging_utils.sh"
|
||||
|
||||
|
||||
@@ -3,5 +3,3 @@ azure:
|
||||
settings_win:
|
||||
pool:
|
||||
vmImage: windows-2022
|
||||
conda_build:
|
||||
error_overlinking: false
|
||||
|
||||
Reference in New Issue
Block a user