Skip to content

Commit

Permalink
Bump msrv to 1.65 (#1140)
Browse files Browse the repository at this point in the history
* Bump main.yml

* Check msrv on macOS in main.yml

* Bump msrv to 1.65

* Bump msrv to 1.66

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix job msrv

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu authored Jul 8, 2024
1 parent 2802459 commit 0eebb31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,21 +196,22 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
env:
MSRV: 1.66.0
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.63.0 --no-self-update --profile minimal
rustup toolchain install $MSRV --no-self-update --profile minimal
rustup toolchain install nightly --no-self-update --profile minimal
rustup default 1.63.0
rustup default $MSRV
shell: bash
- name: Create Cargo.lock with minimal version
run: cargo +nightly update -Zminimal-versions
- name: Cache downloaded crates since 1.63 is really slow in fetching
uses: Swatinem/rust-cache@v2
- run: cargo check --lib -p cc --locked
- run: cargo check --lib -p cc --locked --all-features
- uses: Swatinem/rust-cache@v2
- run: env -u CARGO_REGISTRIES_CRATES_IO_PROTOCOL cargo check --lib -p cc --locked
- run: env -u CARGO_REGISTRIES_CRATES_IO_PROTOCOL cargo check --lib -p cc --locked --all-features

clippy:
name: Clippy
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ categories = ["development-tools::build-utils"]
# The binary target is only used by tests.
exclude = ["/.github", "tests", "src/bin"]
edition = "2018"
rust-version = "1.63"
rust-version = "1.66"

[dependencies]
jobserver = { version = "0.1.30", default-features = false, optional = true }
Expand Down

0 comments on commit 0eebb31

Please sign in to comment.