diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c5a0b97 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,17 @@ +on: [ push, pull_request ] + +name: CI + +jobs: + build: + name: build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + steps: + - uses: actions/checkout@v2 + - name: Install Rust + run: rustup update stable + - name: Build + run: cargo build --release diff --git a/.github/workflows/clippy_check.yaml b/.github/workflows/clippy_check.yaml new file mode 100644 index 0000000..d493f5a --- /dev/null +++ b/.github/workflows/clippy_check.yaml @@ -0,0 +1,19 @@ +on: [ push, pull_request ] + +name: Clippy check + +jobs: + clippy_check: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + steps: + - uses: actions/checkout@v1 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features \ No newline at end of file diff --git a/.github/workflows/rustfmt.yaml b/.github/workflows/rustfmt.yaml new file mode 100644 index 0000000..b4f9f1a --- /dev/null +++ b/.github/workflows/rustfmt.yaml @@ -0,0 +1,17 @@ +on: [ push, pull_request ] + +name: Rustfmt + +jobs: + rustfmt: + name: rustfmt + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - run: cargo fmt --all -- --check