1
1
on :
2
2
pull_request :
3
- paths :
4
- - ' *.yaml'
3
+ workflow_dispatch :
5
4
6
5
env :
7
6
ROS_VERSION : 2
@@ -55,58 +54,41 @@ jobs:
55
54
rm -rf /c/Strawberry
56
55
rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"
57
56
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::${?}"
75
57
- name : Generate recipes for linux-64
76
58
shell : bash -l {0}
77
- if : steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
59
+ if : matrix.platform == 'linux-64'
78
60
run : |
79
61
cp vinca_linux_64.yaml vinca.yaml
80
62
mkdir -p recipes
81
63
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m
82
64
ls -la recipes
83
65
- name : Generate recipes for linux-aarch64
84
66
shell : bash -l {0}
85
- if : steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
67
+ if : matrix.platform == 'linux-aarch64'
86
68
run : |
87
69
cp vinca_linux_aarch64.yaml vinca.yaml
88
70
mkdir -p recipes
89
71
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m
90
72
ls -la recipes
91
73
- name : Generate recipes for osx-64
92
74
shell : bash -l {0}
93
- if : steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
75
+ if : matrix.platform == 'osx-64'
94
76
run : |
95
77
cp vinca_osx.yaml vinca.yaml
96
78
mkdir -p recipes
97
79
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m
98
80
ls -la recipes
99
81
- name : Generate recipes for osx-arm64
100
82
shell : bash -l {0}
101
- if : steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
83
+ if : matrix.platform == 'osx-arm64'
102
84
run : |
103
85
cp vinca_osx_arm64.yaml vinca.yaml
104
86
mkdir -p recipes
105
87
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m
106
88
ls -la recipes
107
89
- name : Generate recipes for win-64
108
90
shell : bash -l {0}
109
- if : steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
91
+ if : matrix.platform == 'win-64'
110
92
run : |
111
93
# Workaround for problem related to long paths
112
94
echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
@@ -119,37 +101,39 @@ jobs:
119
101
id : newrecipecheck
120
102
shell : bash -l {0}
121
103
run : |
122
- # continue on error
123
104
set +e
124
- test ! -d recipes
125
- echo "::set-output name=RECIPE_CREATED::${?}"
105
+ if [ ! -d recipes ] || [ -z "$(ls -A recipes)" ]; then
106
+ echo "RECIPE_CREATED=0" >> $GITHUB_OUTPUT
107
+ else
108
+ echo "RECIPE_CREATED=1" >> $GITHUB_OUTPUT
109
+ fi
126
110
- name : Build recipes for linux-64
127
111
shell : bash -l {0}
128
- 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'
129
113
run : |
130
114
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
131
115
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
132
116
- name : Build recipes for linux-aarch64
133
117
shell : bash -l {0}
134
- 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'
135
119
run : |
136
120
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
137
121
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
138
122
- name : Build recipes for osx-64
139
123
shell : bash -l {0}
140
- 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'
141
125
run : |
142
126
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
143
127
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
144
128
- name : Build recipes for osx-arm64
145
129
shell : bash -l {0}
146
- 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'
147
131
run : |
148
132
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
149
133
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
150
134
- name : Build recipes for win-64
151
135
shell : bash -l {0}
152
- 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'
153
137
run : |
154
138
$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
155
139
$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