Split formatting to a separate job

This commit is contained in:
John Kåre Alsaker
2022-08-11 01:04:09 +02:00
parent 49c877085b
commit 8601f28eba
+13 -1
View File
@@ -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