mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
Debug Management
This commit is contained in:
1 parent
23119b1eeb
commit
da3c15b49d
5 files changed
+90
-30
No files matched your search
+30
-30
@@ -63,7 +63,7 @@ env:
|
||||
# - web: build for the Web
|
||||
# - em: build for the Emscripten
|
||||
|
||||
# For build time and size optimization we disable debug
|
||||
# For build time and size optimization we disable debug symbols
|
||||
# entirely on clippy jobs and reduce it to line-numbers
|
||||
# only for ones where we run tests.
|
||||
#
|
||||
@@ -207,13 +207,15 @@ jobs:
|
||||
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal --component clippy,rust-src
|
||||
echo "RUSTC_BOOTSTRAP=1" >> "$GITHUB_ENV"
|
||||
|
||||
- name: disable debug
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo """
|
||||
[profile.dev]
|
||||
debug = false" >> .cargo/config.toml
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = false
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
@@ -355,13 +357,15 @@ jobs:
|
||||
rustup override set ${{ env.CORE_MSRV }}
|
||||
cargo -V
|
||||
|
||||
- name: disable debug
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo """
|
||||
[profile.dev]
|
||||
debug = false" >> .cargo/config.toml
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = false
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
@@ -403,7 +407,7 @@ jobs:
|
||||
with:
|
||||
tool: cargo-hack
|
||||
|
||||
- name: disable debug
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
@@ -491,6 +495,16 @@ jobs:
|
||||
with:
|
||||
tool: cargo-nextest,cargo-llvm-cov
|
||||
|
||||
- name: debug symbols to line-tables-only
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = "line-tables-only"
|
||||
EOF
|
||||
|
||||
# Cache step must go before warp and mesa install on windows as they write into the
|
||||
# target directory, and rust-cache will overwrite the entirety of the target directory.
|
||||
- name: caching
|
||||
@@ -588,14 +602,6 @@ jobs:
|
||||
echo "LD_LIBRARY_PATH=$PWD/mesa/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
|
||||
echo "LIBGL_DRIVERS_PATH=$PWD/mesa/lib/x86_64-linux-gnu/dri" >> "$GITHUB_ENV"
|
||||
|
||||
- name: disable debug
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo """
|
||||
[profile.dev]
|
||||
debug = 1" >> .cargo/config.toml
|
||||
|
||||
- name: run wgpu-info
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -658,14 +664,6 @@ jobs:
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
cargo -V
|
||||
|
||||
- name: disable debug
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo """
|
||||
[profile.dev]
|
||||
debug = 1" >> .cargo/config.toml
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
@@ -727,13 +725,15 @@ jobs:
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
cargo -V
|
||||
|
||||
- name: disable debug
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
echo """
|
||||
[profile.dev]
|
||||
debug = 1" >> .cargo/config.toml
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = false
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
@@ -31,6 +31,16 @@ jobs:
|
||||
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = false
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
|
||||
@@ -40,6 +40,16 @@ jobs:
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
cargo -V
|
||||
|
||||
- name: disable debug symbols
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = false
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
|
||||
@@ -36,6 +36,16 @@ jobs:
|
||||
- name: Install wasm-bindgen
|
||||
run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION
|
||||
|
||||
- name: debug symbols to line-tables-only
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = "line-tables-only"
|
||||
EOF
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
|
||||
@@ -31,6 +31,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: debug symbols to line-tables-only
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = "line-tables-only"
|
||||
EOF
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
@@ -76,6 +86,16 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: debug symbols to line-tables-only
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = "line-tables-only"
|
||||
EOF
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
@@ -108,6 +128,16 @@ jobs:
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install graphviz
|
||||
|
||||
- name: debug symbols to line-tables-only
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p .cargo
|
||||
|
||||
cat <<EOF >> .cargo/config.toml
|
||||
[profile.dev]
|
||||
debug = "line-tables-only"
|
||||
EOF
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
|
||||
Reference in new issue
Block a user