Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/testpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Build recipes
shell: bash -l {0}
run: |
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c conda-forge -c robostack-rolling --skip-existing
pixi run rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://prefix.dev/conda-forge -c https://prefix.dev/robostack-rolling --skip-existing
- name: See packages that will be saved in cache
shell: bash -l {0}
Expand Down
12 changes: 9 additions & 3 deletions .scripts/build_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ for recipe in ${CURRENT_RECIPES[@]}; do

done

# Check if it build something, this is a hotfix for the skips inside additional_recipes
if compgen -G "${CONDA_BLD_PATH}/${target}*/*.conda" > /dev/null; then
pixi run upload "${CONDA_BLD_PATH}/${target}"*/*.conda --skip-existing
# Check if it build something, this is a hotfix for the skips inside additional_recipes
shopt -s nullglob
conda_packages=( "${CONDA_BLD_PATH}/${target}"*/*.conda )
if (( ${#conda_packages[@]} > 0 )); then
# Upload packages one-by-one to avoid rattler-upload returning after the first
# package skipped by --skip-existing.
for conda_package in "${conda_packages[@]}"; do
pixi run upload "${conda_package}" --skip-existing
done
else
echo "Warning: No .conda files found in ${CONDA_BLD_PATH}/${target}"
echo "This might be due to all the packages being skipped"
Expand Down
6 changes: 4 additions & 2 deletions .scripts/build_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ for %%X in (%CURRENT_RECIPES%) do (
:: Check if .conda files exist in the win-64 directory
if exist "%CONDA_BLD_PATH%\win-64\*.conda" (
echo Found .conda files, starting upload...
rem Upload packages one-by-one to avoid rattler-upload returning after the first
rem package skipped by --skip-existing.
for %%F in ("%CONDA_BLD_PATH%\win-64\*.conda") do (
echo Uploading %%F
pixi run upload "%%F" --skip-existing
echo Uploading %%~fF
pixi run upload "%%~fF" --skip-existing
if errorlevel 1 exit 1
)
) else (
Expand Down
Loading