Skip to content

Commit bfcbed4

Browse files
committed
bins: Add rust echo publishing
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent d863b1b commit bfcbed4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rust.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,31 @@ jobs:
113113
path: glint-${{ steps.version.outputs.version }}-${{ matrix.arch }}
114114
retention-days: 30
115115

116+
- name: Build echo
117+
run: cargo build --release -p toolshed-echo
118+
working-directory: rust
119+
120+
- name: Get echo version
121+
id: echo-version
122+
run: |
123+
cd rust/echo
124+
VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
125+
echo "version=$VERSION" >> $GITHUB_OUTPUT
126+
127+
- name: Strip echo binary
128+
run: strip rust/target/release/toolshed-echo
129+
130+
- name: Rename echo binary with version and architecture
131+
run: |
132+
cp rust/target/release/toolshed-echo echo-${{ steps.echo-version.outputs.version }}-${{ matrix.arch }}
133+
134+
- name: Upload echo binary
135+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
136+
with:
137+
name: rust-artifacts-echo-${{ steps.echo-version.outputs.version }}-${{ matrix.arch }}
138+
path: echo-${{ steps.echo-version.outputs.version }}-${{ matrix.arch }}
139+
retention-days: 30
140+
116141
status:
117142
runs-on: ubuntu-24.04
118143
if: >-

0 commit comments

Comments
 (0)