Skip to content

Commit a4448cd

Browse files
committed
update workflow
Signed-off-by: wep21 <[email protected]>
1 parent cb4992b commit a4448cd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/testpr.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ jobs:
6262
run: |
6363
pixi run anaconda --version
6464
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+
6575
- name: Generate recipes for linux-64
6676
shell: bash -l {0}
6777
if: matrix.platform == 'linux-64'
@@ -118,13 +128,13 @@ jobs:
118128
fi
119129
- name: Build recipes for linux-64
120130
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'
122132
run: |
123133
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
124134
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
125135
- name: Build recipes for linux-aarch64
126136
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'
128138
run: |
129139
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
130140
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

0 commit comments

Comments
 (0)