Skip to content

Commit f5852f9

Browse files
authored
Remove check for .yaml modification before recipe generated in testpr CI job
1 parent fd6ca4f commit f5852f9

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

.github/workflows/testpr.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,58 +56,41 @@ jobs:
5656
rm -rf /c/Strawberry
5757
rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"
5858
59-
- name: Check what files have changed
60-
id: filecheck
61-
shell: bash -l {0}
62-
run: |
63-
git fetch origin main
64-
# continue on error
65-
set +e
66-
git diff --exit-code --name-only origin/main -- vinca_linux_64.yaml > /dev/null
67-
echo "::set-output name=LINUX_YAML_CHANGED::${?}"
68-
git diff --exit-code --name-only origin/main -- vinca_linux_aarch64.yaml > /dev/null
69-
echo "::set-output name=LINUX_AARCH_YAML_CHANGED::${?}"
70-
git diff --exit-code --name-only origin/main -- vinca_osx.yaml > /dev/null
71-
echo "::set-output name=OSX_YAML_CHANGED::${?}"
72-
git diff --exit-code --name-only origin/main -- vinca_osx_arm64.yaml > /dev/null
73-
echo "::set-output name=OSX_ARM_YAML_CHANGED::${?}"
74-
git diff --exit-code --name-only origin/main -- vinca_win.yaml > /dev/null
75-
echo "::set-output name=WIN_YAML_CHANGED::${?}"
7659
- name: Generate recipes for linux-64
7760
shell: bash -l {0}
78-
if: steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
61+
if: matrix.platform == 'linux-64'
7962
run: |
8063
cp vinca_linux_64.yaml vinca.yaml
8164
mkdir -p recipes
8265
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m -n
8366
ls -la recipes
8467
- name: Generate recipes for linux-aarch64
8568
shell: bash -l {0}
86-
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
69+
if: matrix.platform == 'linux-aarch64'
8770
run: |
8871
cp vinca_linux_aarch64.yaml vinca.yaml
8972
mkdir -p recipes
9073
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m -n
9174
ls -la recipes
9275
- name: Generate recipes for osx-64
9376
shell: bash -l {0}
94-
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
77+
if: matrix.platform == 'osx-64'
9578
run: |
9679
cp vinca_osx.yaml vinca.yaml
9780
mkdir -p recipes
9881
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m -n
9982
ls -la recipes
10083
- name: Generate recipes for osx-arm64
10184
shell: bash -l {0}
102-
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
85+
if: matrix.platform == 'osx-arm64'
10386
run: |
10487
cp vinca_osx_arm64.yaml vinca.yaml
10588
mkdir -p recipes
10689
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m -n
10790
ls -la recipes
10891
- name: Generate recipes for win-64
10992
shell: bash -l {0}
110-
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
93+
if: matrix.platform == 'win-64'
11194
run: |
11295
# Workaround for problem related to long paths
11396
echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
@@ -126,31 +109,31 @@ jobs:
126109
echo "::set-output name=RECIPE_CREATED::${?}"
127110
- name: Build recipes for linux-64
128111
shell: bash -l {0}
129-
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
112+
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
130113
run: |
131114
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
132115
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
133116
- name: Build recipes for linux-aarch64
134117
shell: bash -l {0}
135-
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
118+
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-aarch64'
136119
run: |
137120
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
138121
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
139122
- name: Build recipes for osx-64
140123
shell: bash -l {0}
141-
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
124+
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-64'
142125
run: |
143126
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes --target-platform osx-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
144127
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes --target-platform osx-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
145128
- name: Build recipes for osx-arm64
146129
shell: bash -l {0}
147-
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
130+
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-arm64'
148131
run: |
149132
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes --target-platform osx-arm64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
150133
env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes --target-platform osx-arm64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
151134
- name: Build recipes for win-64
152135
shell: bash -l {0}
153-
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
136+
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'win-64'
154137
run: |
155138
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir additional_recipes --target-platform win-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
156139
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes --target-platform win-64 -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing

0 commit comments

Comments
 (0)