@@ -0,0 +1,79 @@
1+# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
3+# While our "example" application has the platform-specific code,
4+# for simplicity we are compiling and testing everything on the Ubuntu environment only.
5+# For multi-OS testing see the `cross.yml` workflow.
7+on: [push, pull_request]
14+ runs-on: ubuntu-latest
16+ - name: Checkout sources
17+ uses: actions/checkout@v2
19+ - name: Install stable toolchain
20+ uses: actions-rs/toolchain@v1
26+ - name: Run cargo check
27+ uses: actions-rs/cargo@v1
28+ continue-on-error: true # WARNING: only for this example, remove it!
34+ runs-on: ubuntu-latest
36+ - name: Checkout sources
37+ uses: actions/checkout@v2
39+ - name: Install stable toolchain
40+ uses: actions-rs/toolchain@v1
46+ - name: Run cargo test
47+ uses: actions-rs/cargo@v1
48+ continue-on-error: true # WARNING: only for this example, remove it!
54+ runs-on: ubuntu-latest
56+ - name: Checkout sources
57+ uses: actions/checkout@v2
59+ - name: Install stable toolchain
60+ uses: actions-rs/toolchain@v1
65+ components: rustfmt, clippy
67+ - name: Run cargo fmt
68+ uses: actions-rs/cargo@v1
69+ continue-on-error: true # WARNING: only for this example, remove it!
72+ args: --all -- --check
74+ - name: Run cargo clippy
75+ uses: actions-rs/cargo@v1
76+ continue-on-error: true # WARNING: only for this example, remove it!