Skip to content

Commit

Permalink
Fix build with minimal versions resolution (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Jul 27, 2022
1 parent 8ab9b7f commit 30eab63
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/minver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check minimal version resolution

on: [push]

jobs:
check-minver:
name: Test with minimal version resolution
runs-on: ubuntu-latest
continue-on-error: true

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@cargo-minimal-versions
- name: Test
run: make check-minver
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ backtrace = []
[dependencies]
csv = { version = "1.1.4", optional = true }
serde = { version = "1.0.117", features = ["derive"] }
serde_yaml = "0.8.14"
serde_yaml = "0.8.26"
console = { version = "0.15.0", optional = true, default-features = false }
serde_json = "1.0.59"
pest = { version = "2.1.3", optional = true }
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ cargotest:
@cargo test --features redactions,backtrace -- --test-threads 1
@cd cargo-insta; cargo test

check-minver:
@echo "MINVER CHECK"
@cargo minimal-versions check
@cargo minimal-versions check --all-features
@cargo minimal-versions check --no-default-features
@cargo minimal-versions check --features redactions,backtrace

format:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all
Expand Down

0 comments on commit 30eab63

Please sign in to comment.