File tree Expand file tree Collapse file tree 5 files changed +50
-81
lines changed Expand file tree Collapse file tree 5 files changed +50
-81
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,13 @@ jobs:
102
102
id : newrecipecheck
103
103
shell : bash -l {0}
104
104
run : |
105
- # continue on error
105
+ # Workaround for https://github.com/prefix-dev/rattler-build/issues/1535
106
106
set +e
107
- test ! -d recipes
108
- echo "::set-output name=RECIPE_CREATED::${?}"
107
+ if [ ! -d recipes ] || [ -z "$(ls -A recipes)" ]; then
108
+ echo "RECIPE_CREATED=0" >> $GITHUB_OUTPUT
109
+ else
110
+ echo "RECIPE_CREATED=1" >> $GITHUB_OUTPUT
111
+ fi
109
112
- name : Build recipes for linux-64
110
113
shell : bash -l {0}
111
114
if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Default values
4
+ target=" "
5
+
6
+ # Parse arguments
7
+ while [[ " $# " -gt 0 ]]; do
8
+ case $1 in
9
+ --target) target=" $2 " ; shift ;; # Capture value for --target
10
+ * ) echo " Unknown parameter passed: $1 " ; exit 1 ;; # Handle invalid options
11
+ esac
12
+ shift
13
+ done
14
+
15
+ set -xeuo pipefail
16
+ export PYTHONUNBUFFERED=1
17
+
18
+ export FEEDSTOCK_ROOT=` pwd`
19
+ export " CONDA_BLD_PATH=$HOME /conda-bld/"
20
+
21
+ curl -fsSL https://pixi.sh/install.sh | bash
22
+ export PATH=" $HOME /.pixi/bin:$PATH "
23
+
24
+ if [[ " $target " == * " osx" * ]]; then
25
+ echo " osx"
26
+ export PATH=$( echo $PATH | tr " :" " \n" | grep -v ' homebrew' | xargs | tr ' ' ' :' )
27
+ fi
28
+
29
+ extra_channel=" "
30
+ cross_compile=" "
31
+
32
+ for recipe in ${CURRENT_RECIPES[@]} ; do
33
+ pixi run -v rattler-build build \
34
+ --recipe ${FEEDSTOCK_ROOT} /recipes/${recipe} \
35
+ -m ${FEEDSTOCK_ROOT} /conda_build_config.yaml \
36
+ -c robostack-staging -c conda-forge \
37
+ ${extra_channel} \
38
+ --output-dir $CONDA_BLD_PATH \
39
+ ${cross_compile}
40
+ # -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml \
41
+
42
+ done
43
+
44
+ pixi run upload ${CONDA_BLD_PATH} /${target} * /* .conda --force
You can’t perform that action at this time.
0 commit comments