From 6d95b7b6405fb2bfa9e585e2b8c00d5faae9fb23 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Tue, 21 Jul 2020 01:26:37 +0200 Subject: Switch to GitHub Actions (#344) * Switch to GitHub Actions * Switch CI badge to GitHub Actions flow * Only run on nightly for now --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..219e187 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: [push, pull_request] + +jobs: + ci: + name: CI with ${{ matrix.rust }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + rust: [nightly] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt, clippy + + - name: cargo build + uses: actions-rs/cargo@v1 + with: + command: build + + - name: cargo test + uses: actions-rs/cargo@v1 + with: + command: test + + - name: cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - name: cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings -- cgit v1.2.3