From 24f1fca97a9a508447b3c1198139984c403febf3 Mon Sep 17 00:00:00 2001 From: Lucas Farias Date: Sat, 24 May 2025 16:37:31 -0300 Subject: [PATCH] Update CI to run render asset tests --- .github/workflows/ci.yml | 12 +++++++++--- .github/workflows/weekly.yml | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6245b696aa..db5586559b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,15 +49,21 @@ jobs: sudo add-apt-repository ppa:kisak/turtle -y sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers - name: Build & run tests - if: ${{ runner.os != 'linux' }} # See tools/ci/src/main.rs for the commands this runs run: cargo run -p ci -- test env: RUSTFLAGS: "-C debuginfo=0 -D warnings" - - name: Build & run tests through xvfb + - name: Build & run render assets tests through xvfb if: ${{ runner.os == 'linux' }} # See tools/ci/src/main.rs for the commands this runs - run: xvfb-run cargo run -p ci -- test + run: xvfb-run cargo run -p ci -- test-render-assets + env: + RUSTFLAGS: "-C debuginfo=0 -D warnings" + - name: Build & run render assets tests + # Windows crashes on this due to headless app + if: ${{ runner.os == 'macOS' }} + # See tools/ci/src/main.rs for the commands this runs + run: cargo run -p ci -- test-render-assets env: RUSTFLAGS: "-C debuginfo=0 -D warnings" diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 60f113eee1..9e5b0ff227 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -50,15 +50,21 @@ jobs: sudo add-apt-repository ppa:kisak/turtle -y sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers - name: Build & run tests - if: ${{ runner.os != 'linux' }} # See tools/ci/src/main.rs for the commands this runs run: cargo run -p ci -- test env: RUSTFLAGS: "-C debuginfo=0 -D warnings" - - name: Build & run tests through xvfb + - name: Build & run render assets tests through xvfb if: ${{ runner.os == 'linux' }} # See tools/ci/src/main.rs for the commands this runs - run: xvfb-run cargo run -p ci -- test + run: xvfb-run cargo run -p ci -- test-render-assets + env: + RUSTFLAGS: "-C debuginfo=0 -D warnings" + - name: Build & run render assets tests + # Windows crashes on this due to headless app + if: ${{ runner.os == 'macOS' }} + # See tools/ci/src/main.rs for the commands this runs + run: cargo run -p ci -- test-render-assets env: RUSTFLAGS: "-C debuginfo=0 -D warnings"