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