From 8601f28eba7b1be04a039dee7b0aa3765616634b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Thu, 11 Aug 2022 01:04:09 +0200 Subject: [PATCH] Split formatting to a separate job --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c29b78..c5cd042 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,9 @@ jobs: - uses: actions-rs/toolchain@v1 with: + profile: minimal toolchain: stable override: true - components: rustfmt - name: Install Rust targets run: > @@ -70,6 +70,18 @@ jobs: -t x86 -o app/src/main/jniLibs/ -- build + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt + - name: Format run: cargo fmt --all -- --check working-directory: android-activity