Skip to content

Commit cdaf06a

Browse files
Merge pull request #41 from traversaro/fixnewrecipecheck
Fix testpr CI job if not recipe was generated and update scripts to work with latest vinca version
2 parents 40eccf4 + 4f7d7b9 commit cdaf06a

File tree

5 files changed

+50
-81
lines changed

5 files changed

+50
-81
lines changed

.github/workflows/testpr.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ jobs:
102102
id: newrecipecheck
103103
shell: bash -l {0}
104104
run: |
105-
# continue on error
105+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/1535
106106
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
109112
- name: Build recipes for linux-64
110113
shell: bash -l {0}
111114
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'

.scripts/build_linux.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

.scripts/build_osx.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.scripts/build_osx_arm64.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.scripts/build_unix.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)