Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed May 26, 2024
1 parent 11a305b commit bfcd4d5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ on:
branches:
- main
- '[0-9]+.[0-9]+.x'
schedule:
- cron: '0 2 * * *'
workflow_dispatch:

env:
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true
RUST_BACKTRACE: 1
RUSTUP_MAX_RETRIES: 10
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings

jobs:
test:
Expand Down
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,21 @@ unsafe_code = "forbid"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
non_ascii_idents = "warn"
non_local_definitions = 'warn'
unreachable_pub = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"

[workspace.lints.clippy]
all = "deny"
pedantic = "deny"
# Additional Clippy lint groups.
nursery = 'warn'
pedantic = 'warn'
missing_errors_doc = "warn"
needless_pass_by_value = "warn"
module_name_repetitions = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
type_complexity = { level = "allow", priority = 1 }
lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270

[workspace.lints.rustdoc]
private_intra_doc_links = 'allow'
3 changes: 3 additions & 0 deletions viz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ tokio-rustls = { workspace = true, optional = true }
tokio = { workspace = true, features = ["macros"] }
tokio-util = { workspace = true, features = ["net"] }

[target.'cfg(windows)'.dependencies]
tokio-rustls = { workspace = true, optional = true, default-features = false, features = ["logging", "tls12", "ring"] }

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }

Expand Down

0 comments on commit bfcd4d5

Please sign in to comment.