Skip to content

Update gix requirement from 0.70.0 to 0.72.1 #444

Update gix requirement from 0.70.0 to 0.72.1

Update gix requirement from 0.70.0 to 0.72.1 #444

Workflow file for this run

name: msrv-badge
on:
pull_request:
push:
workflow_dispatch:
jobs:
create-msrv-badge:
runs-on: ubuntu-latest
strategy:
matrix:
crates: [function-grep, git-function-history-lib, cargo-function-history, git-function-history-gui, function_history_backend_thread, git_function_history-proc-macro]
fail-fast: false
container: mendelrubin/cargo-msrv:latest
steps:
- uses: actions/checkout@v4
- name: remove Cargo.toml so cargo-msrv doesn't find it
run: |
rm Cargo.toml
ls -l
- uses: actions/checkout@v4
- name: Get MSRV and create badge
id: get-msrv
run: |
rm Cargo.toml
cd ${{ matrix.crates }}
ls -l
cargo msrv --output-format minimal > msrv.txt
tr -d '\n' < msrv.txt > msrv2.txt
cat msrv2.txt
echo "msrv=$(cat msrv2.txt)" >> $GITHUB_OUTPUT
cargo msrv set $(cat msrv2.txt)
- name: Create Badge
run: |
curl https://img.shields.io/badge/minimum%20rust%20version-${{ steps.get-msrv.outputs.msrv }}-blue.svg > resources/${{ matrix.crates }}_msrv.svg
- name: Commit Badge
# If there are no changes to the badge this would error out. But it
# isn't a problem if there were no changes, so errors are allowed.
continue-on-error: true
run: |
git pull
git add resources/${{ matrix.crates }}_msrv.svg
git add ${{ matrix.crates }}/Cargo.toml
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Update MSRV badge [Skip CI]"
git push