File tree 1 file changed +12
-2
lines changed 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 62
62
run : |
63
63
pixi run anaconda --version
64
64
65
+ - name : Check if additional recipes have changed
66
+ id : additionalrecipecheck
67
+ shell : bash -l {0}
68
+ run : |
69
+ git fetch origin main
70
+ # continue on error
71
+ set +e
72
+ git diff --exit-code --name-only origin/main -- additional_recipes > /dev/null
73
+ echo "::set-output name=ADDITIONAL_RECIPE_CHANGED::${?}"
74
+
65
75
- name : Generate recipes for linux-64
66
76
shell : bash -l {0}
67
77
if : matrix.platform == 'linux-64'
@@ -118,13 +128,13 @@ jobs:
118
128
fi
119
129
- name : Build recipes for linux-64
120
130
shell : bash -l {0}
121
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
131
+ if : ( steps.newrecipecheck.outputs.RECIPE_CREATED == 1 || steps.additionalrecipecheck.outputs.ADDITIONAL_RECIPE_CHANGED == 1) && matrix.platform == 'linux-64'
122
132
run : |
123
133
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes --target-platform linux-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
124
134
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes --target-platform linux-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
125
135
- name : Build recipes for linux-aarch64
126
136
shell : bash -l {0}
127
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-aarch64'
137
+ if : ( steps.newrecipecheck.outputs.RECIPE_CREATED == 1 || steps.additionalrecipecheck.outputs.ADDITIONAL_RECIPE_CHANGED == 1) && matrix.platform == 'linux-aarch64'
128
138
run : |
129
139
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes --target-platform linux-aarch64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
130
140
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes --target-platform linux-aarch64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
You can’t perform that action at this time.
0 commit comments