Merge pull request #1202 from epage/template

chore(ci): Don't bother checking minimal-versions for bins
This commit is contained in:
Ed Page 2024-07-26 11:08:16 -05:00 committed by GitHub
commit aea654f4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 3 deletions

View file

@ -22,7 +22,7 @@ jobs:
permissions:
contents: none
name: CI
needs: [test, msrv, lockfile, docs, rustfmt, clippy]
needs: [test, msrv, lockfile, docs, rustfmt, clippy, minimal-versions]
runs-on: ubuntu-latest
if: "always()"
steps:
@ -67,6 +67,24 @@ jobs:
- uses: taiki-e/install-action@cargo-hack
- name: Default features
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
minimal-versions:
name: Minimal versions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Downgrade dependencies to minimal versions
run: cargo +nightly generate-lockfile -Z minimal-versions
- name: Compile with minimal versions
run: cargo +stable check --workspace --all-features --locked --exclude cobalt-bin --exclude cobalt-core --exclude cobalt-config
lockfile:
runs-on: ubuntu-latest
steps:

2
Cargo.lock generated
View file

@ -623,6 +623,7 @@ name = "engarde"
version = "0.1.10"
dependencies = [
"syntect",
"thiserror",
]
[[package]]
@ -714,6 +715,7 @@ name = "file-serve"
version = "0.3.4"
dependencies = [
"log",
"mime",
"mime_guess",
"tiny_http",
]

View file

@ -21,7 +21,7 @@ include = [
]
[workspace.lints.rust]
rust_2018_idioms = "warn"
rust_2018_idioms = { level = "warn", priority = -1 }
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"

View file

@ -36,5 +36,8 @@ optional = true
default-features = false
features = ["parsing", "regex-fancy", "default-syntaxes", "default-themes", "html", "dump-load", "yaml-load"]
[target.'cfg(any())'.dependencies]
thiserror = "1.0.2" # HACK: bad minimal dep in syntect
[lints]
workspace = true

View file

@ -28,8 +28,11 @@ pre-release-replacements = [
[dependencies]
tiny_http = "0.12.0"
mime_guess = "2"
mime_guess = "2.0.5"
log = "0.4"
[target.'cfg(any())'.dependencies]
mime = "0.3.17" # HACK: bad minimal dep in mime_guess
[lints]
workspace = true