mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-01 16:37:53 -04:00
ci: split checking formatting off into its own job that only needs to run once
This commit is contained in:
16
.github/workflows/check-and-build-and-test.yml
vendored
16
.github/workflows/check-and-build-and-test.yml
vendored
@@ -10,6 +10,19 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install stable Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Formatting
|
||||
run: cargo fmt --check --verbose
|
||||
|
||||
check-build-and-test:
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -52,9 +65,6 @@ jobs:
|
||||
- name: Check
|
||||
run: cargo check --verbose --target ${{ matrix.supporteds.target }}
|
||||
|
||||
- name: Formatting
|
||||
run: cargo fmt --check --verbose --target ${{ matrix.supporteds.target }}
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose --target ${{ matrix.supporteds.target }}
|
||||
|
||||
|
Reference in New Issue
Block a user