Skip to content

Commit b87efa3

Browse files
authored
Merge pull request #10 from comit-network/arm-build
Add arm ubuntu build
2 parents 7c5250d + 648d81d commit b87efa3

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +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
14+
os: ubuntu-latest
15+
archive_ext: tar
16+
- target: armv7-unknown-linux-gnueabihf
1517
os: ubuntu-latest
1618
archive_ext: tar
1719
runs-on: ${{ matrix.os }}
@@ -24,12 +26,12 @@ jobs:
2426

2527
- uses: Swatinem/[email protected]
2628

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

29-
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
3032

3133
- name: Smoke test the binary
32-
run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help
34+
run: target/${{ matrix.target }}/release/rendezvous_server --help
3335

3436
# Remove once python 3 is the default
3537
- uses: actions/[email protected]
@@ -47,14 +49,14 @@ jobs:
4749
triple = "${{ matrix.target }}".split("-")
4850
arch = triple[0]
4951
50-
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 }}'
5153
5254
print(f'::set-output name=archive::{archive_name}')
5355
5456
- name: Pack linux archive
5557
if: matrix.os == 'ubuntu-latest'
5658
shell: bash
57-
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
5860

5961
- name: Upload archive
6062
uses: actions/[email protected]

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "1.53"
3+
components = ["clippy"]
4+
targets = ["armv7-unknown-linux-gnueabihf"]

0 commit comments

Comments
 (0)