My stab at CI (#66)

This commit is contained in:
Miles Wirht
2026-06-15 18:42:57 -04:00
committed by GitHub
parent 74a728db05
commit ec395ac14c
32 changed files with 815 additions and 280 deletions
-2
View File
@@ -14,5 +14,3 @@ rustflags = ["-D", "warnings"]
# We don't need fullest debug information for dev stuff (tests etc.) in CI.
[profile.dev]
debug = "limited"
+30 -4
View File
@@ -9,6 +9,32 @@ test-all = "test --workspace --no-fail-fast"
test-doc = "test --workspace --doc"
build-all = "build --workspace --all-targets"
ci-fmt = "fmt --all -- --check"
xtask = "run --package xtask --"
perf-test = [
"test",
"--profile",
"release-fast",
"--lib",
"--bins",
"--tests",
"--all-features",
"--config",
"target.'cfg(true)'.runner='cargo run -p perf --release'",
"--config",
"target.'cfg(true)'.rustflags=[\"--cfg\", \"perf_enabled\"]",
]
# Keep similar flags here to share some ccache
perf-compare = [
"run",
"--profile",
"release-fast",
"-p",
"perf",
"--config",
"target.'cfg(true)'.rustflags=[\"--cfg\", \"perf_enabled\"]",
"--",
"compare",
]
[profile.ci]
inherits = "dev"
@@ -17,10 +43,10 @@ incremental = false
[target.'cfg(target_os = "windows")']
rustflags = [
"--cfg",
"windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
"-C",
"target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
"--cfg",
"windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
"-C",
"target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
]
# We need lld to link libwebrtc.a successfully on aarch64-linux