Skip to content

Commit

Permalink
🤖 update cargo-msrv setup setp
Browse files Browse the repository at this point in the history
- remove jq setup which is obsolete on latest ubuntu runners (dt 24.04)
- update cargo-msrv version, make setup more generic by adding version variable
  • Loading branch information
ttytm committed Nov 1, 2024
1 parent 1e1069e commit 36e759a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ jobs:
- uses: actions/checkout@v4
- name: Setup dependencies
run: |
# Setup latest jq
curl -Lo jq https://github.com/jqlang/jq/releases/latest/download/jq-linux-amd64
chmod +x jq
# Setup cargo msrv
cargo_msrv="cargo-msrv-x86_64-unknown-linux-gnu-v0.16.0-beta.22"
curl -Lo "$cargo_msrv".tgz https://github.com/foresterre/cargo-msrv/releases/download/v0.16.0-beta.22/"$cargo_msrv".tgz
tar -xvf "$cargo_msrv".tgz
mv "$cargo_msrv"/cargo-msrv ./
version=v0.16.2
artifact="cargo-msrv-x86_64-unknown-linux-gnu-$version"
curl -Lo cargo_msrv.tgz "https://github.com/foresterre/cargo-msrv/releases/download/$version/$artifact.tgz"
tar -xvf cargo_msrv.tgz
mv "${artifact}/cargo-msrv" ./
- name: Detect MSRV changes
run: |
defined_msrv="$(./cargo-msrv show --output-format json 2>&1 | ./jq -r '.result.version' | tail -n 1)"
Expand Down

0 comments on commit 36e759a

Please sign in to comment.