From 2e052e97c58b8b0009ca1f736f42e17cc4997584 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 17 Sep 2019 16:48:51 -0700 Subject: [PATCH] Experimental GitHub Action --- .github/workflows/rust.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 00000000..74b23f50 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,30 @@ +name: Rust + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + rust_version: [stable, "1.34.0"] + + steps: + - uses: actions/checkout@v1 + + - name: Setup Rust toolchain + run: rustup default ${{ matrix.rust_version }} + + - name: Build + run: cargo build --all --locked --verbose + + - name: Run tests + run: cargo test --all --locked --verbose + + - name: Rustfmt and Clippy + run: | + cargo fmt -- --check + cargo clippy + if: matrix.rust_version == "stable" \ No newline at end of file