3232 persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
3333 fetch-depth : 0 # otherwise, you will failed to push refs to dest repo
3434
35- -
uses :
prefix-dev/[email protected] .1 35+ -
uses :
prefix-dev/[email protected] .10 3636 with :
3737 environments : beta
3838 frozen : true
@@ -56,113 +56,39 @@ 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
59+ # Regression for https://github.com/RoboStack/ros-jazzy/issues/44
60+ - name : Check that anaconda-client command works fine
6161 shell : bash -l {0}
6262 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_emscripten32.yaml > /dev/null
69- echo "::set-output name=EMSCRIPTEN32_YAML_CHANGED::${?}"
70- git diff --exit-code --name-only origin/main -- vinca_linux_aarch64.yaml > /dev/null
71- echo "::set-output name=LINUX_AARCH_YAML_CHANGED::${?}"
72- git diff --exit-code --name-only origin/main -- vinca_osx.yaml > /dev/null
73- echo "::set-output name=OSX_YAML_CHANGED::${?}"
74- git diff --exit-code --name-only origin/main -- vinca_osx_arm64.yaml > /dev/null
75- echo "::set-output name=OSX_ARM_YAML_CHANGED::${?}"
76- git diff --exit-code --name-only origin/main -- vinca_win.yaml > /dev/null
77- echo "::set-output name=WIN_YAML_CHANGED::${?}"
78- - name : Generate recipes for linux-64
79- shell : bash -l {0}
80- if : matrix.platform == 'linux-64'
81- run : |
82- mkdir -p recipes
83- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m
84- ls -la recipes
85- - name : Generate recipes for emscripten-wasm32
86- shell : bash -l {0}
87- if : steps.filecheck.outputs.EMSCRIPTEN32_YAML_CHANGED == 1 && matrix.platform == 'emscripten-wasm32'
88- run : |
89- mkdir -p recipes
90- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform emscripten-wasm32 -m -n
91- ls -la recipes
92- - name : Generate recipes for linux-aarch64
93- shell : bash -l {0}
94- if : matrix.platform == 'linux-aarch64'
95- run : |
96- mkdir -p recipes
97- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m
98- ls -la recipes
99- - name : Generate recipes for osx-64
100- shell : bash -l {0}
101- if : matrix.platform == 'osx-64'
102- run : |
103- mkdir -p recipes
104- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m
105- ls -la recipes
106- - name : Generate recipes for osx-arm64
107- shell : bash -l {0}
108- if : matrix.platform == 'osx-arm64'
109- run : |
110- mkdir -p recipes
111- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m
112- ls -la recipes
113- - name : Generate recipes for win-64
63+ pixi run anaconda --version
64+
65+ - name : Long paths workarounds for win-64
11466 shell : bash -l {0}
11567 if : matrix.platform == 'win-64'
11668 run : |
11769 # Workaround for problem related to long paths
11870 echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
11971 mkdir /c/bld
120- mkdir -p recipes
121- $HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64 -m
122- ls -la recipes
123- - name : Check if there are packages to be built
124- id : newrecipecheck
125- shell : bash -l {0}
126- run : |
127- set +e
128- if [ ! -d recipes ] || [ -z "$(ls -A recipes)" ]; then
129- echo "RECIPE_CREATED=0" >> $GITHUB_OUTPUT
130- else
131- echo "RECIPE_CREATED=1" >> $GITHUB_OUTPUT
132- fi
133- - name : Build recipes for linux-64
134- shell : bash -l {0}
135- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
136- run : |
137- 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
138- 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
139- - name : Build recipes for emscripten-wasm32
140- shell : bash -l {0}
141- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.EMSCRIPTEN32_YAML_CHANGED == 1 && matrix.platform == 'emscripten-wasm32'
142- run : |
143- env -i $HOME/.pixi/bin/pixi run -e beta sh -c 'find additional_recipes/* -maxdepth 0 -type d -exec ln -s ../{} recipes/ \;'
144- env -i $HOME/.pixi/bin/pixi run -e beta rattler-build build --recipe-dir ./recipes --target-platform emscripten-wasm32 -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c robostack-staging -c conda-forge --skip-existing --test skip
145- - name : Build recipes for linux-aarch64
72+
73+ - name : Generate recipes
14674 shell : bash -l {0}
147- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-aarch64'
14875 run : |
149- 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
150- 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
151- - name : Build recipes for osx-64
76+ mkdir -p recipes
77+ pixi run -e beta -v vinca --platform ${{ matrix.platform }} -m -n
78+
79+ - name : Check patches
15280 shell : bash -l {0}
153- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-64'
15481 run : |
155- 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
156- 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
157- - name : Build recipes for osx-arm64
82+ pixi run -e beta python check_patches_clean_apply.py
83+
84+ - name : Build recipes [non emscripten]
15885 shell : bash -l {0}
159- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-arm64 '
86+ if : matrix.platform != 'emscripten-wasm32 '
16087 run : |
161- 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
162- 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
163- - name : Build recipes for win-64
88+ pixi run -e beta rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c robostack-staging -c conda-forge --skip-existing
89+
90+ - name : Build recipes [emscripten]
16491 shell : bash -l {0}
165- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'win-64 '
92+ if : matrix.platform == 'emscripten-wasm32 '
16693 run : |
167- $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
168- $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
94+ pixi run -e beta rattler-build build --recipe-dir recipes --target-platform ${{ matrix.platform }} -m ./conda_build_config.yaml -c https://repo.mamba.pm/emscripten-forge/ -c robostack-staging -c conda-forge --skip-existing
0 commit comments