Search lyrics or song metadata from your terminal
genius genius-lyrics-search genius-lyrics cli rust

Use minimal Rust toolchain and drop clippy

Enable profile: minimal and add rustfmt and clippy components
for macOS (x86_64 and aarch64) and the Linux target.
Remove the standalone rust-clippy workflow.

+6 -54
+4
.github/workflows/release-for-mac.yml
··· 11 11 - name: Installing Rust toolchain for x86_64 12 12 uses: actions-rs/toolchain@v1 13 13 with: 14 + profile: minimal 14 15 toolchain: stable 15 16 target: x86_64-apple-darwin 16 17 override: true 18 + components: rustfmt, clippy 17 19 18 20 - name: Installing Rust toolchain for aarch64 19 21 uses: actions-rs/toolchain@v1 20 22 with: 23 + profile: minimal 21 24 toolchain: stable 22 25 target: aarch64-apple-darwin 23 26 override: true 27 + components: rustfmt, clippy 24 28 - name: Checking out sources 25 29 uses: actions/checkout@v1 26 30 - name: Running cargo build for x86_64
+2
.github/workflows/release.yml
··· 31 31 if: matrix.target == 'x86_64-unknown-linux-musl' 32 32 uses: actions-rs/toolchain@v1 33 33 with: 34 + profile: minimal 34 35 toolchain: stable 35 36 target: x86_64-unknown-linux-gnu 36 37 override: true 38 + components: rustfmt, clippy 37 39 - name: Running cargo build 38 40 if: matrix.target == 'x86_64-unknown-linux-musl' 39 41 uses: actions-rs/cargo@v1
-54
.github/workflows/rust-clippy.yml
··· 1 - # This workflow uses actions that are not certified by GitHub. 2 - # They are provided by a third-party and are governed by 3 - # separate terms of service, privacy policy, and support 4 - # documentation. 5 - # rust-clippy is a tool that runs a bunch of lints to catch common 6 - # mistakes in your Rust code and help improve your Rust code. 7 - # More details at https://github.com/rust-lang/rust-clippy 8 - # and https://rust-lang.github.io/rust-clippy/ 9 - 10 - name: rust-clippy analyze 11 - 12 - on: 13 - push: 14 - branches: [ "master" ] 15 - pull_request: 16 - # The branches below must be a subset of the branches above 17 - branches: [ "master" ] 18 - schedule: 19 - - cron: '37 7 * * 2' 20 - 21 - jobs: 22 - rust-clippy-analyze: 23 - name: Run rust-clippy analyzing 24 - runs-on: ubuntu-latest 25 - permissions: 26 - contents: read 27 - security-events: write 28 - steps: 29 - - name: Checkout code 30 - uses: actions/checkout@v2 31 - 32 - - name: Install Rust toolchain 33 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1 34 - with: 35 - profile: minimal 36 - toolchain: stable 37 - components: clippy 38 - override: true 39 - 40 - - name: Install required cargo 41 - run: cargo install clippy-sarif sarif-fmt 42 - 43 - - name: Run rust-clippy 44 - run: 45 - cargo clippy 46 - --all-features 47 - --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt 48 - continue-on-error: true 49 - 50 - - name: Upload analysis results to GitHub 51 - uses: github/codeql-action/upload-sarif@v2 52 - with: 53 - sarif_file: rust-clippy-results.sarif 54 - wait-for-processing: true