From 30ceb84639a125764f4526e3c9ebdf55d1c3ac09 Mon Sep 17 00:00:00 2001 From: Nick Hynes Date: Mon, 13 Jul 2020 23:16:15 +0000 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ec01df3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +on: push + +name: CI + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt, clippy + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-features --profile test -- -D warnings + + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features + + build-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + + - uses: actions-rs/cargo@v1 + with: + command: build + args: --all-features --release