summaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust-linux-main.yml
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-05-15 14:28:14 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-05-15 14:28:14 -0400
commit55c8d9ed956497c3bb0bd4ad326009d3a1740a56 (patch)
treedca90a6446b57e6893afdccc74294936f7ad187c /.github/workflows/rust-linux-main.yml
parent040c6e20fda222185c45d8b28f7cba8f2dd47e3f (diff)
fix github workflow
Diffstat (limited to '.github/workflows/rust-linux-main.yml')
-rw-r--r--.github/workflows/rust-linux-main.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/rust-linux-main.yml b/.github/workflows/rust-linux-main.yml
new file mode 100644
index 0000000..ab48b78
--- /dev/null
+++ b/.github/workflows/rust-linux-main.yml
@@ -0,0 +1,31 @@
+name: Linux build
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ check:
+ name: Rust Linux ${{ matrix.rust }}
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust: [stable]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install minimal ${{ matrix.rust }} rust
+ uses: actions-rs/toolchain@v1
+ with:
+ override: true
+ profile: minimal
+ toolchain: ${{ matrix.rust }}
+ - run: cargo -Vv && rustc -Vv
+ - run: cargo check
+ - run: cargo check --all-features
+ if: ${{ matrix.rust == 'stable' }}
+ - run: cargo fmt --all -- --check
+ if: ${{ matrix.rust == 'stable' }}
+ - run: cargo test
+ if: ${{ matrix.rust == 'stable' }}