From 4b8ebf1bcd7f53154f4da1c92ab4c9e4cca5d97a Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Tue, 17 Sep 2019 13:46:01 +0200 Subject: [PATCH] Add a Github Actions workflow. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..0b6c2be --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: ci +on: [push, pull_request] +jobs: + test: + name: test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [1.34.0, stable, beta, nightly] + steps: + - name: Checkout repository + uses: actions/checkout@v1 + - name: Install Rust + uses: hecrj/setup-rust-action@v1 + with: + reust-version: ${{ matrix.rust }} + - if: matrix.rust != 'nightly' + run: rustup component add clippy + - if: matrix.rust != 'nightly' + run: cargo clippy -- -D warnings + - run: cargo build --verbose + - run: cargo test --verbose +