Skip to content

Commit

Permalink
Use Cargo.toml MSRV in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Apr 10, 2024
1 parent 0072d33 commit 5df3b6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true

- name: Retrieve MSRV
id: msrv
run: echo "MSRV=$(cat Cargo.toml | grep -Po '(?<=rust-version = ")([\d\.]+)')" >> $GITHUB_OUTPUT

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.75.0"
toolchain: ${{ steps.msrv.outputs.MSRV }}
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ members = [
"crates/claims/core",
"crates/claims/crates/*",
"crates/claims/crates/data-integrity/core",
"crates/claims/crates/data-integrity/suites",
# "ssi-sd-jwt",
"crates/claims/crates/data-integrity/suites"
]

[workspace.dependencies]
Expand Down

0 comments on commit 5df3b6d

Please sign in to comment.