summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMichael Abel <75477722+abelikt@users.noreply.github.com>2021-12-13 13:40:46 +0100
committerGitHub <noreply@github.com>2021-12-13 13:40:46 +0100
commit2e2f2dc6207889b411e1d50ef0ce30adc3960ba8 (patch)
tree972f7d8d7d881f451aac37c5c6b6cf706af31979 /.github
parentc698d87379be3c79a08f3415ce8694d035bed2c3 (diff)
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/commit-workflow.yml58
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