Skip to content

Commit

Permalink
workflows/rust: reorder clippy after build
Browse files Browse the repository at this point in the history
  • Loading branch information
eNV25 committed Oct 9, 2023
1 parent 37ff9cf commit 82beb78
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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

0 comments on commit 82beb78

Please sign in to comment.