1
1
on :
2
2
pull_request :
3
- paths :
4
- - ' *.yaml'
3
+ workflow_dispatch :
5
4
6
5
env :
7
6
ROS_VERSION : 2
@@ -14,14 +13,21 @@ jobs:
14
13
include :
15
14
- os : ubuntu-latest
16
15
platform : linux-64
16
+ additional_recipes :
17
+ - " ros-jazzy-livox-ros-driver2"
17
18
- os : ubuntu-24.04-arm
18
19
platform : linux-aarch64
20
+ additional_recipes :
21
+ - " ros-jazzy-livox-ros-driver2"
19
22
- os : macos-13
20
23
platform : osx-64
24
+ additional_recipes : []
21
25
- os : macos-14
22
26
platform : osx-arm64
23
- - os : windows-2019
27
+ additional_recipes : []
28
+ - os : windows-2022
24
29
platform : win-64
30
+ additional_recipes : []
25
31
26
32
runs-on : ${{ matrix.os }}
27
33
31
37
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
32
38
fetch-depth : 0 # otherwise, you will failed to push refs to dest repo
33
39
34
- - uses : prefix-dev/setup-pixi@v0.8.1
40
+ - uses : prefix-dev/setup-pixi@v0.8.8
35
41
with :
36
- pixi-version : v0.41.1
42
+ pixi-version : v0.44.0
37
43
environments : beta
38
44
frozen : true
39
45
@@ -56,58 +62,48 @@ jobs:
56
62
rm -rf /c/Strawberry
57
63
rm -rf "/c/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/"
58
64
59
- - name : Check what files have changed
60
- id : filecheck
65
+
66
+ # Regression for https://github.com/RoboStack/ros-jazzy/issues/44
67
+ - name : Check that anaconda-client command works fine
61
68
shell : bash -l {0}
62
69
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::${?}"
70
+ pixi run anaconda --version
71
+
76
72
- name : Generate recipes for linux-64
77
73
shell : bash -l {0}
78
- if : steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
74
+ if : matrix.platform == 'linux-64'
79
75
run : |
80
76
cp vinca_linux_64.yaml vinca.yaml
81
77
mkdir -p recipes
82
78
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-64 -m -n
83
79
ls -la recipes
84
80
- name : Generate recipes for linux-aarch64
85
81
shell : bash -l {0}
86
- if : steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
82
+ if : matrix.platform == 'linux-aarch64'
87
83
run : |
88
84
cp vinca_linux_aarch64.yaml vinca.yaml
89
85
mkdir -p recipes
90
86
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform linux-aarch64 -m -n
91
87
ls -la recipes
92
88
- name : Generate recipes for osx-64
93
89
shell : bash -l {0}
94
- if : steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
90
+ if : matrix.platform == 'osx-64'
95
91
run : |
96
92
cp vinca_osx.yaml vinca.yaml
97
93
mkdir -p recipes
98
94
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-64 -m -n
99
95
ls -la recipes
100
96
- name : Generate recipes for osx-arm64
101
97
shell : bash -l {0}
102
- if : steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
98
+ if : matrix.platform == 'osx-arm64'
103
99
run : |
104
100
cp vinca_osx_arm64.yaml vinca.yaml
105
101
mkdir -p recipes
106
102
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform osx-arm64 -m -n
107
103
ls -la recipes
108
104
- name : Generate recipes for win-64
109
105
shell : bash -l {0}
110
- if : steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
106
+ if : matrix.platform == 'win-64'
111
107
run : |
112
108
# Workaround for problem related to long paths
113
109
echo "CONDA_BLD_PATH=C:\\bld\\" >> $GITHUB_ENV
@@ -116,41 +112,48 @@ jobs:
116
112
mkdir -p recipes
117
113
$HOME/.pixi/bin/pixi run -e beta -v vinca --platform win-64 -m -n
118
114
ls -la recipes
115
+ - name : Copy additional recipes which have been changed into recipes
116
+ shell : bash -l {0}
117
+ run : |
118
+ echo '${{ toJson(matrix.additional_recipes) }}' | jq -r ".[]" | xargs -I@ cp -r additional_recipes/@ recipes/
119
119
- name : Check if there are packages to be built
120
120
id : newrecipecheck
121
121
shell : bash -l {0}
122
122
run : |
123
- # continue on error
123
+ # Workaround for https://github.com/prefix-dev/rattler-build/issues/1535
124
124
set +e
125
- test ! -d recipes
126
- echo "::set-output name=RECIPE_CREATED::${?}"
125
+ if [ ! -d recipes ] || [ -z "$(ls -A recipes)" ]; then
126
+ echo "RECIPE_CREATED=0" >> $GITHUB_OUTPUT
127
+ else
128
+ echo "RECIPE_CREATED=1" >> $GITHUB_OUTPUT
129
+ fi
127
130
- name : Build recipes for linux-64
128
131
shell : bash -l {0}
129
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_YAML_CHANGED == 1 && matrix.platform == 'linux-64'
132
+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'
130
133
run : |
131
- 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
134
+ # 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
135
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
136
- name : Build recipes for linux-aarch64
134
137
shell : bash -l {0}
135
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.LINUX_AARCH_YAML_CHANGED == 1 && matrix.platform == 'linux-aarch64'
138
+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-aarch64'
136
139
run : |
137
- 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
140
+ # 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
141
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
142
- name : Build recipes for osx-64
140
143
shell : bash -l {0}
141
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_YAML_CHANGED == 1 && matrix.platform == 'osx-64'
144
+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-64'
142
145
run : |
143
- 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
146
+ # 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
147
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
148
- name : Build recipes for osx-arm64
146
149
shell : bash -l {0}
147
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.OSX_ARM_YAML_CHANGED == 1 && matrix.platform == 'osx-arm64'
150
+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'osx-arm64'
148
151
run : |
149
- 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
152
+ # 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
153
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
154
- name : Build recipes for win-64
152
155
shell : bash -l {0}
153
- if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && steps.filecheck.outputs.WIN_YAML_CHANGED == 1 && matrix.platform == 'win-64'
156
+ if : steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'win-64'
154
157
run : |
155
- $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
158
+ # $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
159
$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