Skip to content

Commit b211a1f

Browse files
committed
Inline binary name in github actions workflow
1 parent 92d95b3 commit b211a1f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/build-release-binaries.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ jobs:
1010
strategy:
1111
matrix:
1212
include:
13-
- bin: rendezvous_server
14-
target: x86_64-unknown-linux-gnu
13+
- target: x86_64-unknown-linux-gnu
1514
os: ubuntu-latest
1615
archive_ext: tar
17-
- bin: rendezvous_server
18-
target: armv7-unknown-linux-gnueabihf
16+
- target: armv7-unknown-linux-gnueabihf
1917
os: ubuntu-latest
2018
archive_ext: tar
2119
runs-on: ${{ matrix.os }}
@@ -28,12 +26,12 @@ jobs:
2826

2927
- uses: Swatinem/[email protected]
3028

31-
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
29+
- name: Build ${{ matrix.target }} rendezvous_server release binary
3230

33-
run: cargo build --target=${{ matrix.target }} --release --package rendezvous-server --bin ${{ matrix.bin }}
31+
run: cargo build --target=${{ matrix.target }} --release --package rendezvous-server --bin rendezvous_server
3432

3533
- name: Smoke test the binary
36-
run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help
34+
run: target/${{ matrix.target }}/release/rendezvous_server --help
3735

3836
# Remove once python 3 is the default
3937
- uses: actions/[email protected]
@@ -51,14 +49,14 @@ jobs:
5149
triple = "${{ matrix.target }}".split("-")
5250
arch = triple[0]
5351
54-
archive_name=f'${{ matrix.bin }}_${{ github.event.release.tag_name }}_{os_info.system}_{arch}.${{ matrix.archive_ext }}'
52+
archive_name=f'rendezvous_server_${{ github.event.release.tag_name }}_{os_info.system}_{arch}.${{ matrix.archive_ext }}'
5553
5654
print(f'::set-output name=archive::{archive_name}')
5755
5856
- name: Pack linux archive
5957
if: matrix.os == 'ubuntu-latest'
6058
shell: bash
61-
run: tar -C ./target/${{ matrix.target }}/release --create --file=${{ steps.create-archive-name.outputs.archive }} ${{ matrix.bin }}
59+
run: tar -C ./target/${{ matrix.target }}/release --create --file=${{ steps.create-archive-name.outputs.archive }} rendezvous_server
6260

6361
- name: Upload archive
6462
uses: actions/[email protected]

0 commit comments

Comments
 (0)