Skip to content

Commit

Permalink
Added MSRV check (#3291)
Browse files Browse the repository at this point in the history
* Added MSRV check

* Added Rust version check from Cargo.toml

* Update rust.yml

Co-authored-by: Kevin <[email protected]>

---------

Co-authored-by: Kevin <[email protected]>
  • Loading branch information
Razican and nekevss authored Sep 23, 2023
1 parent c964dec commit 7e18da6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@ jobs:
- name: Test docs
run: cargo test --doc --profile ci --features intl

msrv:
name: Minimum supported Rust version
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
# Get the rust_version from the Cargo.toml
- name: Get rust_version
id: rust_version
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT
- uses: actions-rs/[email protected]
with:
toolchain: ${{ steps.rust_version.outputs.rust_version }}
override: true
profile: minimal
- name: Check compilation
run: cargo check --all-features --all-targets

misc:
name: Misc
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ members = [
[workspace.package]
edition = "2021"
version = "0.17.0"
rust-version = "1.71"
rust-version = "1.71.0"
authors = ["boa-dev"]
repository = "https://github.com/boa-dev/boa"
license = "Unlicense OR MIT"
Expand Down

0 comments on commit 7e18da6

Please sign in to comment.