Browse Source

ci: reorder steps (no real effect.. just perfectionism :D)

Philipp Schuster 2 years ago
parent
commit
0cd09379a5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .github/workflows/_build-rust.yml

+ 3 - 3
.github/workflows/_build-rust.yml

@@ -56,13 +56,13 @@ jobs:
           key: ${{ runner.os }}-rust-${{ inputs.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml') }}
           restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
       - run: cargo version
-      - name: Code Formatting
-        if: ${{ inputs.do-style-check }}
-        run: cargo fmt --all -- --check
       - name: Build (library)
         run: cargo build --target ${{ inputs.rust-target }}
       - name: Build (all targets)
         run: cargo build --all-targets
+      - name: Code Formatting
+        if: ${{ inputs.do-style-check }}
+        run: cargo fmt --all -- --check
       - name: Code Style and Doc Style
         if: ${{ inputs.do-style-check }}
         run: |