Parcourir la source

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

Philipp Schuster il y a 2 ans
Parent
commit
0cd09379a5
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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') }}
           key: ${{ runner.os }}-rust-${{ inputs.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml') }}
           restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
           restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
       - run: cargo version
       - run: cargo version
-      - name: Code Formatting
-        if: ${{ inputs.do-style-check }}
-        run: cargo fmt --all -- --check
       - name: Build (library)
       - name: Build (library)
         run: cargo build --target ${{ inputs.rust-target }}
         run: cargo build --target ${{ inputs.rust-target }}
       - name: Build (all targets)
       - name: Build (all targets)
         run: cargo 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
       - name: Code Style and Doc Style
         if: ${{ inputs.do-style-check }}
         if: ${{ inputs.do-style-check }}
         run: |
         run: |