diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6719ef8..d6b0357 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,17 +24,6 @@ jobs: ~/.cargo/git/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Install required clippy tools - run: cargo install clippy-sarif sarif-fmt - continue-on-error: true - - name: Run rust-clippy - run: cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt - continue-on-error: true - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: rust-clippy-results.sarif - wait-for-processing: true - run: | cargo build --release --locked --target x86_64-unknown-linux-gnu - if: startsWith(github.ref, 'refs/tags/v') @@ -46,3 +35,14 @@ jobs: uses: softprops/action-gh-release@v1 with: files: mpris-x86_64-unknown-linux-gnu.so + - name: Install required clippy tools + run: cargo install clippy-sarif sarif-fmt + continue-on-error: true + - name: Run rust-clippy + run: cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt + continue-on-error: true + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: rust-clippy-results.sarif + wait-for-processing: true