feat(transcode): support transcoding #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rust-checks | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| check-rust-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| components: clippy,rustfmt | |
| override: true | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo install clippy-sarif sarif-fmt | |
| - name: Print versions | |
| run: | | |
| rustc --version | |
| cargo fmt --version | |
| cargo clippy --version | |
| - name: cargo check | |
| run: cargo check | |
| - name: cargo test | |
| run: cargo test | |
| - name: cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: cargo clippy | |
| run: cargo clippy --all-targets --all-features --message-format=json | clippy-sarif | tee results.sarif | sarif-fmt | |
| # Workaround for a bug in clippy-sarif causing it to generate duplicated relatedLocations | |
| - name: Deduplicate SARIF relatedLocations | |
| run: | | |
| jq '(.runs[].results[].relatedLocations) |= unique' results.sarif > results-dedup.sarif | |
| mv results-dedup.sarif results.sarif | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: results.sarif |