Add production build pipeline
CI / build-and-test (pull_request) Successful in 1m30s
CI / production-build (pull_request) Successful in 19m17s

This commit is contained in:
2026-09-19 18:35:32 +02:00
parent 804e5e37e0
commit e10f0848bc
8 changed files with 152 additions and 12 deletions
+12 -1
View File
@@ -6,8 +6,13 @@ authors = [""]
[workspace]
[features]
default = ["development", "debug_features"]
development = ["bevy/dynamic_linking", "bevy/file_watcher"]
debug_features = ["bevy/free_camera"]
[dependencies]
bevy = { version = "0.19", features = ["asset_processor", "basis-universal", "dynamic_linking", "free_camera", "file_watcher", "bevy_settings"] }
bevy = { version = "0.19", features = ["asset_processor", "basis-universal", "bevy_settings"] }
# Loads the scenes you author in the editor (assets/*.bsn) and builds
# physics colliders from them. An ordinary dependency; remove it if you
# stop using authored scenes.
@@ -37,3 +42,9 @@ fixed_math = "0.4.1"
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3
[profile.production]
inherits = "release"
lto = "thin"
codegen-units = 1
strip = "symbols"