Skip to content

Commit d66fbca

Browse files
authored
Move vinca-generated recipe in a different directory to avoid to include .git and in generated conda pakcage
1 parent 7b7d27c commit d66fbca

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.github/workflows/testpr.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,34 +113,49 @@ jobs:
113113
cp vinca_linux_64.yaml vinca.yaml
114114
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64
115115
cat recipe.yaml
116+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/981
117+
mkdir recipe_dir
118+
mv recipe.yaml ./recipe_dir
116119
- name: Generate recipes for linux-aarch64
117120
shell: bash -l {0}
118121
if: steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
119122
run: |
120123
cp vinca_linux_aarch64.yaml vinca.yaml
121124
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64
122125
cat recipe.yaml
126+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/981
127+
mkdir recipe_dir
128+
mv recipe.yaml ./recipe_dir
123129
- name: Generate recipes for osx-64
124130
shell: bash -l {0}
125131
if: steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
126132
run: |
127133
cp vinca_osx.yaml vinca.yaml
128134
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64
129135
cat recipe.yaml
136+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/981
137+
mkdir recipe_dir
138+
mv recipe.yaml ./recipe_dir
130139
- name: Generate recipes for osx-arm64
131140
shell: bash -l {0}
132141
if: steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
133142
run: |
134143
cp vinca_osx_arm64.yaml vinca.yaml
135144
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64
136145
cat recipe.yaml
146+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/981
147+
mkdir recipe_dir
148+
mv recipe.yaml ./recipe_dir
137149
- name: Generate recipes for win-64
138150
shell: bash -l {0}
139151
if: steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
140152
run: |
141153
cp vinca_win.yaml vinca.yaml
142154
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64
143155
cat recipe.yaml
156+
# Workaround for https://github.com/prefix-dev/rattler-build/issues/981
157+
mkdir recipe_dir
158+
mv recipe.yaml ./recipe_dir
144159
- name: Check if there are packages to be built
145160
id: newrecipecheck
146161
shell: bash -l {0}
@@ -152,32 +167,32 @@ jobs:
152167
- name: Build recipes for linux-64
153168
shell: bash -l {0}
154169
run: |
155-
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing --output-dir ../output
156-
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
170+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
171+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe_dir/recipe.yaml -m ./conda_build_config.yaml --skip-existing
157172
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-64'
158173
- name: Build recipes for linux-aarch64
159174
shell: bash -l {0}
160175
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.os == 'ubuntu-latest' && matrix.platform == 'linux-aarch64'
161176
run: |
162-
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing --output-dir ../output
163-
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
177+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
178+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe_dir/recipe.yaml -m ./conda_build_config.yaml --skip-existing
164179
- name: Build recipes for osx-64
165180
shell: bash -l {0}
166181
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.os == 'macos-latest' && matrix.platform == 'osx-64'
167182
run: |
168-
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing --output-dir ../output
169-
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
183+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
184+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe_dir/recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
170185
- name: Build recipes for osx-arm64
171186
shell: bash -l {0}
172187
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.os == 'macos-14' && matrix.platform == 'osx-arm64'
173188
run: |
174189
pwd
175190
find .pixi
176-
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing --output-dir ../output
177-
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
191+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
192+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe_dir/recipe.yaml -m ./conda_build_config.yaml --skip-existing
178193
- name: Build recipes for win-64
179194
shell: bash -l {0}
180195
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.os == 'windows-2019' && matrix.platform == 'win-64'
181196
run: |
182-
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing --output-dir ../output
183-
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe.yaml -m ./conda_build_config.yaml --skip-existing --output-dir ../output
197+
$HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe additional_recipes/ros2-distro-mutex/ -m ./conda_build_config.yaml -c robostack-jazzy -c conda-forge --skip-existing
198+
$HOME/.pixi/bin/pixi run -e beta rattler-build build -r recipe_dir/recipe.yaml -m ./conda_build_config.yaml --skip-existing

0 commit comments

Comments
 (0)