From 2e2f2dc6207889b411e1d50ef0ce30adc3960ba8 Mon Sep 17 00:00:00 2001
From: Michael Abel <75477722+abelikt@users.noreply.github.com>
Date: Mon, 13 Dec 2021 13:40:46 +0100
Subject: Compile for 32 bit in commit workflow (#584)
* Also compile in commit workflow for 32bit
* Update names
* Also cross build the tests for 32 bit
* Wait for cargo and clippy
---
.github/workflows/commit-workflow.yml | 58 +++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
(limited to '.github')
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
--
cgit v1.2.3
alue='search'/>
blob: 4dd8dd01f59d1216e3812b6e3a198165cce01e56 (
plain)