Repository: rust-cv/cv (language: rust)

Issue:
Make Github workflow build all projects
As we discused in the Discord server the CI does not attempt to build all the projects today. A few build error can slip through because of this.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml
new file mode 100644
index 00000000..caf97717
--- /dev/null
+++ b/.github/workflows/build-all.yml
@@ -0,0 +1,35 @@
+# Cargo test
+
+on: [push, pull_request]
+
+name: build
+
+jobs:
+  test:
+    name: Build All
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout sources
+        uses: actions/checkout@v2
+
+      - name: Install nightly toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          profile: minimal
+          toolchain: nightly
+          override: true
+
+      - name: Cache build
+        uses: actions/cache@v2
+        with:
+          path: |
+            ~/.cargo/registry
+            ~/.cargo/git
+            target
+          key: build-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+
+      - name: Run cargo build
+        uses: actions-rs/cargo@v1
+        with:
+          command: build
+          args: --all --all-features
diff --git a/README.md b/README.md
index 56531a1e..10c749e2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Rust CV
 
-[![Discord][dci]][dcl] [![Crates.io][ci]][cl] [![docs.rs][di]][dl] ![LoC][lo] ![Tests][btl] ![Lints][bll]
+[![Discord][dci]][dcl] [![Crates.io][ci]][cl] [![docs.rs][di]][dl] ![LoC][lo] ![Tests][btl] ![Lints][bll] ![Build][bbl]
 
 [ci]: https://img.shields.io/crates/v/cv.svg
 [cl]: https://crates.io/crates/cv/
@@ -15,6 +15,7 @@
 
 [btl]: https://github.com/rust-cv/cv/workflows/unit%20tests/badge.svg
 [bll]: https://github.com/rust-cv/cv/workflows/lints/badge.svg
+[bbl]: https://github.com/rust-cv/cv/workflows/build/badge.svg
 
 Rust CV is a project to implement computer vision algorithms, abstractions, and systems in Rust. `#[no_std]` is supported where possible.
 


Test patch: