20
20
inputs :
21
21
live-run :
22
22
type : boolean
23
- description : If false (or undefined) the workflow runs in dry -run mode (i.e. with no side-effects)
23
+ description : Live -run
24
24
required : false
25
25
version :
26
26
type : string
27
- description : Release number. If undefined, the workflow auto-generates a version using git-describe
27
+ description : Release number
28
28
required : false
29
29
zenoh-version :
30
30
type : string
31
- description : Release number of Zenoh. Required in live-run mode and ignored in dry-run mode
31
+ description : Release number of Zenoh
32
32
required : false
33
33
34
34
jobs :
35
35
tag :
36
- name : Bump and tag crates
37
- uses : eclipse-zenoh/ci/.github/workflows/tag-crates.yml@main
36
+ name : Branch, Bump & tag crates
37
+ uses : eclipse-zenoh/ci/.github/workflows/branch-bump- tag-crates.yml@main
38
38
with :
39
39
repo : ${{ github.repository }}
40
40
live-run : ${{ inputs.live-run || false }}
41
41
version : ${{ inputs.version }}
42
- inter-deps-pattern : ${{ inputs.live-run && 'zenoh.*' || '^$' }}
43
- inter-deps-version : ${{ inputs.live-run && inputs.zenoh-version || '' }}
42
+ bump-deps-version : ${{ inputs.zenoh-version }}
43
+ bump-deps-pattern : ${{ inputs.zenoh-version && 'zenoh.*' || '^$' }}
44
+ bump-deps-branch : ${{ inputs.zenoh-version && format('release/{0}', inputs.zenoh-version) || '' }}
44
45
secrets : inherit
45
46
46
47
build-debian :
@@ -67,33 +68,21 @@ jobs:
67
68
^zenoh_plugin_mqtt\.dll$
68
69
secrets : inherit
69
70
70
- cargo-live-run :
71
- if : ${{ inputs.live-run || false }}
72
- name : Publish Cargo crates (live-run)
71
+ cargo :
73
72
needs : tag
73
+ name : Publish Cargo crates
74
74
uses : eclipse-zenoh/ci/.github/workflows/release-crates-cargo.yml@main
75
75
with :
76
- repos : ${{ github.repository }}
77
- live-run : true
78
- branch : ${{ needs.tag.outputs.branch }}
79
- inter-deps-pattern : ^$
80
- secrets : inherit
81
-
82
- # In dry-run mode, we need to publish eclipse-zenoh/zenoh before this repository,
83
- # in which case the version of zenoh dependecies are left as is and thus point to
84
- # the main branch of eclipse-zenoh/zenoh
85
- cargo-dry-run :
86
- if : ${{ !inputs.live-run || true }}
87
- name : Publish Cargo crates (dry-run)
88
- needs : tag
89
- uses : eclipse-zenoh/ci/.github/workflows/release-crates-cargo.yml@main
90
- with :
91
- repos : |
92
- eclipse-zenoh/zenoh
93
- ${{ github.repository }}
94
- live-run : false
76
+ repo : ${{ github.repository }}
77
+ live-run : ${{ inputs.live-run || false }}
95
78
branch : ${{ needs.tag.outputs.branch }}
96
- inter-deps-pattern : zenoh.*
79
+ # - In dry-run mode, we need to publish eclipse-zenoh/zenoh before this
80
+ # repository, in which case the version of zenoh dependecies are left as
81
+ # is and thus point to the main branch of eclipse-zenoh/zenoh.
82
+ # - In live-run mode, we assume that eclipse-zenoh/zenoh is already
83
+ # published as this workflow can't be responsible for publishing it
84
+ unpublished-deps-patterns : ${{ !(inputs.live-run || false) && 'zenoh.*' || '' }}
85
+ unpublished-deps-repos : ${{ !(inputs.live-run || false) && 'eclipse-zenoh/zenoh' || '' }}
97
86
secrets : inherit
98
87
99
88
debian :
106
95
version : ${{ needs.tag.outputs.version }}
107
96
repo : ${{ github.repository }}
108
97
branch : ${{ needs.tag.outputs.branch }}
98
+ installation-test : false
109
99
secrets : inherit
110
100
111
101
homebrew :
@@ -165,17 +155,19 @@ jobs:
165
155
uses : eclipse-zenoh/ci/.github/workflows/release-crates-dockerhub.yml@main
166
156
with :
167
157
no-build : true
168
- live-run : ${{ inputs.live-run || false }}
158
+ live-run : true
169
159
version : ${{ needs.tag.outputs.version }}
170
160
repo : ${{ github.repository }}
171
- tags : " eclipse/zenoh-plugin-mqtt:${{ needs.tag.outputs.version }}"
161
+ branch : ${{ needs.tag.outputs.branch }}
162
+ tags : " eclipse/zenoh-bridge-mqtt:${{ needs.tag.outputs.version }}"
172
163
binary : zenoh-bridge-mqtt
173
164
files : |
174
165
zenoh-bridge-mqtt
175
166
libzenoh_plugin_mqtt.so
176
167
platforms : |
177
168
linux/arm64
178
169
linux/amd64
170
+ licenses : EPL-2.0 OR Apache-2.0
179
171
secrets : inherit
180
172
181
173
ghcr :
@@ -184,15 +176,17 @@ jobs:
184
176
uses : eclipse-zenoh/ci/.github/workflows/release-crates-ghcr.yml@main
185
177
with :
186
178
no-build : true
187
- live-run : ${{ inputs.live-run || false }}
179
+ live-run : true
188
180
version : ${{ needs.tag.outputs.version }}
189
181
repo : ${{ github.repository }}
190
- tags : " ${{ github.repository }}:${{ needs.tag.outputs.version }}"
182
+ branch : ${{ needs.tag.outputs.branch }}
183
+ tags : " ghcr.io/${{ github.repository }}:${{ needs.tag.outputs.version }}"
191
184
binary : zenoh-bridge-mqtt
192
185
files : |
193
186
zenoh-bridge-mqtt
194
187
libzenoh_plugin_mqtt.so
195
188
platforms : |
196
189
linux/arm64
197
190
linux/amd64
191
+ licenses : EPL-2.0 OR Apache-2.0
198
192
secrets : inherit
0 commit comments