@@ -55,34 +55,17 @@ jobs:
5555 rm -rf /c/Strawberry
5656 rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"
5757
58- - name : Check what files have changed
59- id : filecheck
60- shell : bash -l {0}
61- run : |
62- git fetch origin main
63- # continue on error
64- set +e
65- git diff --exit-code --name-only origin/main -- vinca_linux_64.yaml > /dev/null
66- echo "::set-output name=LINUX_YAML_CHANGED::${?}"
67- git diff --exit-code --name-only origin/main -- vinca_linux_aarch64.yaml > /dev/null
68- echo "::set-output name=LINUX_AARCH_YAML_CHANGED::${?}"
69- git diff --exit-code --name-only origin/main -- vinca_osx.yaml > /dev/null
70- echo "::set-output name=OSX_YAML_CHANGED::${?}"
71- git diff --exit-code --name-only origin/main -- vinca_osx_arm64.yaml > /dev/null
72- echo "::set-output name=OSX_ARM_YAML_CHANGED::${?}"
73- git diff --exit-code --name-only origin/main -- vinca_win.yaml > /dev/null
74- echo "::set-output name=WIN_YAML_CHANGED::${?}"
7558 - name : Generate recipes for linux-64
7659 shell : bash -l {0}
77- if : steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
60+ if : matrix.platform == 'linux-64'
7861 run : |
7962 cp vinca_linux_64.yaml vinca.yaml
8063 mkdir -p recipes
8164 $HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m
8265 ls -la recipes
8366 - name : Generate recipes for linux-aarch64
8467 shell : bash -l {0}
85- if : steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
68+ if : matrix.platform == 'linux-aarch64'
8669 run : |
8770 cp vinca_linux_aarch64.yaml vinca.yaml
8871 mkdir -p recipes
@@ -98,15 +81,15 @@ jobs:
9881 ls -la recipes
9982 - name : Generate recipes for osx-arm64
10083 shell : bash -l {0}
101- if : steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
84+ if : matrix.platform == 'osx-arm64'
10285 run : |
10386 cp vinca_osx_arm64.yaml vinca.yaml
10487 mkdir -p recipes
10588 $HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m
10689 ls -la recipes
10790 - name : Generate recipes for win-64
10891 shell : bash -l {0}
109- if : steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
92+ if : matrix.platform == 'win-64'
11093 run : |
11194 # Workaround for problem related to long paths
11295 echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
@@ -125,31 +108,31 @@ jobs:
125108 echo "::set-output name=RECIPE_CREATED::${?}"
126109 - name : Build recipes for linux-64
127110 shell : bash -l {0}
128- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
111+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
129112 run : |
130113 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-staging -c conda-forge --skip-existing
131114 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-staging -c conda-forge --skip-existing
132115 - name : Build recipes for linux-aarch64
133116 shell : bash -l {0}
134- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
117+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-aarch64'
135118 run : |
136119 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-staging -c conda-forge --skip-existing
137120 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-staging -c conda-forge --skip-existing
138121 - name : Build recipes for osx-64
139122 shell : bash -l {0}
140- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
123+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-64'
141124 run : |
142125 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-staging -c conda-forge --skip-existing
143126 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-staging -c conda-forge --skip-existing
144127 - name : Build recipes for osx-arm64
145128 shell : bash -l {0}
146- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
129+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-arm64'
147130 run : |
148131 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-staging -c conda-forge --skip-existing
149132 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-staging -c conda-forge --skip-existing
150133 - name : Build recipes for win-64
151134 shell : bash -l {0}
152- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
135+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'win-64'
153136 run : |
154137 $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-staging -c conda-forge --skip-existing
155138 $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir recipes -m ./conda_build_config.yaml --target-platform win-64 -c robostack-staging -c conda-forge --skip-existing
0 commit comments