Skip to content

Commit 52ab1dc

Browse files
Add CI test for minimal dependency versions (image-rs#59)
1 parent 63b1b34 commit 52ab1dc

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,24 @@ jobs:
4848
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
4949
- run: cargo test --no-fail-fast -- --nocapture
5050

51-
msrv:
51+
msrv_minimal_versions:
5252
runs-on: ubuntu-latest
53-
strategy:
54-
matrix:
55-
toolchain:
56-
- 1.63.0
5753
steps:
5854
- uses: actions/checkout@v4
59-
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
60-
- run: cargo check
55+
56+
- uses: dtolnay/rust-toolchain@nightly
57+
- name: Generate Cargo.lock with minimal-version dependencies
58+
run: cargo -Zminimal-versions generate-lockfile
59+
60+
- uses: dtolnay/rust-toolchain@v1
61+
with:
62+
toolchain: 1.63.0
63+
- name: Cache Cargo Dependencies
64+
uses: Swatinem/rust-cache@v2
65+
with:
66+
cache-on-failure: true
67+
- name: build
68+
run: cargo build -v
6169

6270
# make sure the crate works with all features enabled/disabled
6371
features:
@@ -102,4 +110,4 @@ jobs:
102110
- uses: actions/checkout@v4
103111
- uses: dtolnay/rust-toolchain@nightly
104112
- run: cargo install cargo-fuzz
105-
- run: cargo fuzz run decoder --no-default-features -- -max_total_time=15 -max_len=512000
113+
- run: cargo fuzz run decoder --no-default-features -- -max_total_time=15 -max_len=512000

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include = [
2929
astc-decode = "=0.3.1"
3030
bitflags = "2.4.0"
3131
glam = "0.25.0"
32-
resize = { version = "0.8.1", default-features = false, features = ["std"] }
32+
resize = { version = "0.8.4", default-features = false, features = ["std"] }
3333
zerocopy = "0.8.14"
3434

3535
# optional dependencies

0 commit comments

Comments
 (0)