Merge pull request #2900 from dundargoc/ci/msrv

ci: remove msrv.yml workflow as it's not really used
This commit is contained in:
Amaan Qureshi 2024-02-03 16:31:05 -05:00 committed by GitHub
commit 14641d170d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 50 deletions

View file

@ -43,13 +43,6 @@ jobs:
checks:
uses: ./.github/workflows/checks.yml
min_version:
name: Minimum supported rust version
needs: checks
uses: ./.github/workflows/msrv.yml
with:
package: tree-sitter-cli
sanitize:
name: Sanitize
needs: [init, checks]
@ -64,7 +57,7 @@ jobs:
release:
name: Release
needs: [init, checks, min_version, build, sanitize]
needs: [init, checks, build, sanitize]
if: >
github.event_name == 'pull_request' &&
startsWith(github.head_ref, 'release/v') &&

View file

@ -1,42 +0,0 @@
name: Minimum supported rust version
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
on:
workflow_call:
inputs:
package:
description: Target cargo package name
required: true
type: string
jobs:
run:
name: Run checks
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Get the MSRV from the package metadata
id: msrv
run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name == "${{ inputs.package }}").rust_version)' >> $GITHUB_OUTPUT
- name: Install rust toolchain (v${{ steps.msrv.outputs.version }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.msrv.outputs.version }}
components: clippy, rustfmt
- name: Run cargo fmt
run: cargo fmt -- --check
# - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
# run: cargo clippy --all-targets
# - name: Run main tests
# run: cargo test