From b1eb637112d3e388c84fe62d40f5a13ac3470dec Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 3 Jan 2022 01:18:33 +0300 Subject: [PATCH] Add GitHub Actions CI config --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..05344b0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +on: + push: + branches: [master] + pull_request: + branches: [master] +name: CI +env: + CARGO_TERM_COLOR: always + HOST: x86_64-unknown-linux-gnu + RUSTFLAGS: "-D warnings" +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + rust: [stable, beta, nightly, 1.51.0] # MSRV=1.51 + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: {profile: minimal, toolchain: '${{ matrix.rust }}', override: true} + - run: cargo test + clippy: + runs-on: ubuntu-latest + strategy: + matrix: + rust: [beta] + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: {profile: minimal, toolchain: '${{ matrix.rust }}', override: true, components: clippy} + - run: cargo clippy