CONTENTIOUS: Run tests on linux through xvfb

This commit is contained in:
Lucas Farias 2025-05-20 16:05:49 -03:00
parent d04208a9f6
commit 4ff946f8f0
2 changed files with 26 additions and 0 deletions

View File

@ -42,11 +42,24 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps
# At some point this may be merged into `install-linux-deps`, but for now it is its own step.
- name: Install additional Linux dependencies for Vulkan
if: ${{ runner.os == 'linux' }}
run: |
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
if: ${{ runner.os == 'linux' }}
# See tools/ci/src/main.rs for the commands this runs
run: xvfb-run cargo run -p ci -- test
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
ci:
runs-on: ubuntu-latest

View File

@ -43,11 +43,24 @@ jobs:
- uses: dtolnay/rust-toolchain@beta
- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps
# At some point this may be merged into `install-linux-deps`, but for now it is its own step.
- name: Install additional Linux dependencies for Vulkan
if: ${{ runner.os == 'linux' }}
run: |
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
if: ${{ runner.os == 'linux' }}
# See tools/ci/src/main.rs for the commands this runs
run: xvfb-run cargo run -p ci -- test
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
lint:
runs-on: ubuntu-latest