From fcbec7e7d2eec19e686c6f866ff158e268f864d2 Mon Sep 17 00:00:00 2001 From: zhboner Date: Mon, 11 May 2020 20:41:06 +0800 Subject: [PATCH] add github action support --- .github/workflows/relay.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/relay.yml diff --git a/.github/workflows/relay.yml b/.github/workflows/relay.yml new file mode 100644 index 0000000..c3ecd4d --- /dev/null +++ b/.github/workflows/relay.yml @@ -0,0 +1,27 @@ +on: [push] + +name: build + +jobs: + check: + name: Rust project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install latest stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check + + - name: Run cargo build + uses: actions-rs/cargo@v1 + with: + command: build --release