From 2e011d3043c4d331496fe2d938bbcd18ccdc45c9 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 12 Dec 2021 23:47:47 +0100 Subject: [PATCH] added .github ci files --- .github/bors.toml | 2 ++ .github/workflows/changelog.yml | 20 +++++++++++++++ .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 .github/bors.toml create mode 100644 .github/workflows/changelog.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/bors.toml b/.github/bors.toml new file mode 100644 index 0000000..1779788 --- /dev/null +++ b/.github/bors.toml @@ -0,0 +1,2 @@ +status = ["ci"] +delete_merged_branches = true diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..dbba297 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,20 @@ +on: + pull_request_target: + +name: Changelog check + +jobs: + changelog: + name: Changelog check + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Changelog updated + uses: Zomzog/changelog-checker@v1.2.0 + with: + fileName: CHANGELOG.md + noChangelogLabel: no changelog + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..757f62a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +on: push + +name: ci + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + target: + - x86_64-unknown-linux-gnu + - thumbv6m-none-eabi + - armv7-unknown-linux-gnueabihf + - thumbv7em-none-eabihf + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + components: rustfmt, clippy + + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: check + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: clippy + args: -- -D warnings