Skip to content

Commit d3ad57a

Browse files
committed
fix: actually test minimal versions
1 parent 8a70282 commit d3ad57a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,31 @@ jobs:
5555
profile: default
5656
override: true
5757

58+
# Install nightly which is required for supporting `-Z minimal-versions`
59+
# https://github.com/rust-lang/cargo/issues/5657
60+
- name: "Install Rust nightly"
61+
uses: actions-rs/toolchain@v1
62+
with:
63+
toolchain: nightly
64+
profile: minimal
65+
5866
- uses: Swatinem/rust-cache@v2
5967

6068
- uses: taiki-e/install-action@v1
6169
with:
6270
tool: nextest
6371

72+
# Install the minimal versions this package says it supports
73+
# https://users.rust-lang.org/t/psa-please-specify-precise-dependency-versions-in-cargo-toml/71277
74+
# https://github.com/rust-lang/cargo/issues/5657
75+
- name: "Install minimal package versions"
76+
uses: actions-rs/cargo@v1
77+
with:
78+
command: update
79+
toolchain: nightly
80+
env:
81+
RUSTFLAGS: -Zminimal-versions
82+
6483
- name: "Cargo ${{ matrix.cargo.name }}"
6584
uses: actions-rs/cargo@v1
6685
with:

0 commit comments

Comments
 (0)