Browse Source

Added MSRV check (#3291)

* Added MSRV check

* Added Rust version check from Cargo.toml

* Update rust.yml

Co-authored-by: Kevin <46825870+nekevss@users.noreply.github.com>

---------

Co-authored-by: Kevin <46825870+nekevss@users.noreply.github.com>
pull/3297/head
Iban Eguia Moraza 1 year ago committed by GitHub
parent
commit
7e18da63fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      .github/workflows/rust.yml
  2. 2
      Cargo.toml

18
.github/workflows/rust.yml

@ -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/toolchain@v1.0.7
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

2
Cargo.toml

@ -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"

Loading…
Cancel
Save