Skip to content

Commit

Permalink
what if I reverse the order?
Browse files Browse the repository at this point in the history
  • Loading branch information
yshavit committed Feb 28, 2025
1 parent 7fcee14 commit 401727b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4
- name: install cargo-msrv
run: docker pull foresterre/cargo-msrv
- name: find minimum supported rust version
id: run-msrv
run: |
set -euo pipefail
min_version="$(docker run --rm -t -v "$PWD/":/app/ foresterre/cargo-msrv find --no-log --output-format minimal)"
echo "result=$min_version" >> "$GITHUB_OUTPUT"
- name: find version mentioned in readme
id: readme-version
run: |
Expand All @@ -48,6 +40,14 @@ jobs:
mkdir -p target/debug
readme_version="$(cat README.md | cargo run -- '# Development | P: "Requires rustc >=" ' | awk '{print $NF}')"
echo "result=$readme_version" >> "$GITHUB_OUTPUT"
- name: pull cargo-msrv from docker hub
run: docker pull foresterre/cargo-msrv
- name: find minimum supported rust version
id: run-msrv
run: |
set -euo pipefail
min_version="$(docker run --rm -t -v "$PWD/":/app/ foresterre/cargo-msrv find --no-log --output-format minimal)"
echo "result=$min_version" >> "$GITHUB_OUTPUT"
- name: compare versions
run: |
if [[ "$MSRV_VERSION" != "$README_VERSION" ]]; then
Expand Down

0 comments on commit 401727b

Please sign in to comment.