From 6e19790c935046d0916dcd85ae4d0c4f353439fd Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Fri, 23 Jan 2026 18:45:09 +0100 Subject: [PATCH] Make debug builds much less heavy by disabling unnecessary debug information, add ALSA headers to Linux and rename the step --- .github/workflows/main.yaml | 4 ++-- Cargo.toml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 15a8e56..47ed386 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -27,7 +27,7 @@ jobs: target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Install mold & clang (Linux) + - name: Install mold, clang, Wayland, ALSA and x11 headers and dependencies (Linux) if: matrix.os == 'ubuntu-22.04' run: | sudo apt update @@ -36,7 +36,7 @@ jobs: libwayland-egl-backend-dev \ libx11-dev libxext-dev libxrandr-dev libxinerama-dev libxcursor-dev \ libxi-dev libxfixes-dev libxrender-dev \ - libfreetype6-dev libfontconfig1-dev libgl1-mesa-dev + libfreetype6-dev libfontconfig1-dev libgl1-mesa-dev libasound2-dev shell: bash diff --git a/Cargo.toml b/Cargo.toml index 5114ae4..b3c04d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,10 @@ features = [ "bevy_winit", ] +[profile.dev.package."*"] +opt-level = 2 +debug = false + [target.'cfg(target_os = "linux")'.dependencies.bevy] version = "0.17.3" features = ["wayland", "x11", "bevy_winit"] \ No newline at end of file