From f3b85cd51fca27162441a7d46088b5d63f00bd12 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 16 Dec 2024 10:50:30 +0100 Subject: [PATCH] ci: add `rust.yml` --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..bf7f6b7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + fmt: + name: Format + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Check + run: bash contrib/scripts/check-fmt.sh check + + check-crate: + name: Check crate + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 'latest' + + - name: Check + run: bash contrib/scripts/check-crate.sh