From e4e70a7473538c120d4d05ad27f6f3923a865edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Sun, 23 Feb 2025 21:09:12 +0100 Subject: [PATCH] don't update mesa for wasm example run (#17999) # Objective - running wasm examples in CI currently timeout, this blocks merging PRs ## Solution - Don't update mesa but uses the version provided by the latest ubuntu - Alternative to #17998 ## Testing run in a docker container: `docker run --rm -it ubuntu` ``` apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y curl git software-properties-common nodejs npm build-essential curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y . "$HOME/.cargo/env" rustup target install wasm32-unknown-unknown curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash cargo binstall wasm-bindgen-cli -y git clone https://github.com/bevyengine/bevy cd bevy cd .github/start-wasm-example npm install npx playwright install --with-deps cd ../.. python3 -m http.server --directory examples/wasm & xvfb-run cargo run -p build-wasm-example -- --browsers firefox --frames 25 --test 2d_shapes ``` --- .github/workflows/validation-jobs.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/validation-jobs.yml b/.github/workflows/validation-jobs.yml index 945d37ac13..464d775028 100644 --- a/.github/workflows/validation-jobs.yml +++ b/.github/workflows/validation-jobs.yml @@ -219,13 +219,6 @@ jobs: target/ key: ${{ runner.os }}-wasm-run-examples-${{ hashFiles('**/Cargo.toml') }} - - name: install xvfb, llvmpipe and lavapipe - run: | - sudo apt-get update -y -qq - sudo add-apt-repository ppa:kisak/turtle -y - sudo apt-get update - sudo apt install -y xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers - - name: Install wasm-bindgen run: cargo install --force wasm-bindgen-cli