diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/commit-workflow.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/commit-workflow.yml b/.github/workflows/commit-workflow.yml index 23288c28..00fb95ab 100644 --- a/.github/workflows/commit-workflow.yml +++ b/.github/workflows/commit-workflow.yml @@ -117,6 +117,64 @@ jobs: with: command: build args: --release + + cargo_build_arm7_32bit: + name: cargo build for armv7 32bit + runs-on: Ubuntu-20.04 + needs: [cargo-fmt, cargo-clippy] + + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: enable toolchain via github action + # https://github.com/actions-rs/toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: armv7-unknown-linux-gnueabihf + override: true + + - name: Enable cache + # https://github.com/marketplace/actions/rust-cache + uses: Swatinem/rust-cache@v1 + + - name: build cross release for target + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + use-cross: true + command: build + args: --release --target=armv7-unknown-linux-gnueabihf + + cargo_build_tests_arm7_32bit: + name: cargo build tests for armv7 32bit + runs-on: Ubuntu-20.04 + needs: [cargo-fmt, cargo-clippy] + + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: enable toolchain via github action + # https://github.com/actions-rs/toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: armv7-unknown-linux-gnueabihf + override: true + + - name: Enable cache + # https://github.com/marketplace/actions/rust-cache + uses: Swatinem/rust-cache@v1 + + - name: Build tests cross release for target + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + use-cross: true + command: test + args: --release --no-run --target=armv7-unknown-linux-gnueabihf cargo-msrv: name: Run cargo msrv |