Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from bonomat/armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Sep 17, 2021
2 parents b045f6a + 5cc36f2 commit b0e31f0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,36 @@ jobs:
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: armv7-unknown-linux-gnueabihf
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: stable
- name: Setup rust toolchain
run: rustup show
- uses: Swatinem/rust-cache@v1.3.0
- run: cargo build --all-targets --all-features
- name: Install compiler for armhf arch
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf
- run: cargo build --target ${{ matrix.target }}
- run: cargo test --workspace
- name: Smoke test ${{ matrix.target }} binary
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
run: |
target/debug/maker --data-dir=/tmp/maker --generate-seed &
target/${{ matrix.target }}/debug/maker --data-dir=/tmp/maker --generate-seed &
sleep 5s # Wait for maker to start
target/debug/taker --data-dir=/tmp/taker --generate-seed &
target/${{ matrix.target }}/debug/taker --data-dir=/tmp/taker --generate-seed &
sleep 5s # Wait for taker to start
curl --fail http://localhost:8000/api/alive
curl --fail http://localhost:8001/api/alive
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: maker-and-taker-binaries-${{ matrix.target }}
path: |
target/${{ matrix.target }}/debug/maker
target/${{ matrix.target }}/debug/taker
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.55"
components = ["clippy"]
targets = ["armv7-unknown-linux-gnueabihf"]

0 comments on commit b0e31f0

Please sign in to comment.