Enable the test suite to use the CPU rasterizers (vulkan and egl)

This commit is contained in:
Maximilian Ammann 2022-06-02 15:04:42 +02:00
parent 07bddd2a8c
commit 9728caa2ac

View File

@ -9,10 +9,21 @@ runs:
shell: bash
run: just default-toolchain
- uses: Swatinem/rust-cache@v1
- name: Install Dependencies
- name: Install Mesa Dependencies
shell: bash
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
- name: Test
run: sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
- name: wgpu info
shell: bash
run: |
cargo install --git "https://github.com/gfx-rs/wgpu" wgpu-info
wgpu-info
- name: Test Vulkan
shell: bash
# TODO: Additional test runs for different targets
run: just test maplibre x86_64-unknown-linux-gnu
run: |
WGPU_BACKEND=vulkan just test maplibre x86_64-unknown-linux-gnu
- name: Test EGL
shell: bash
# TODO: Additional test runs for different targets
run: |
EGL_LOG_LEVEL=debug WGPU_BACKEND=gl just test maplibre x86_64-unknown-linux-gnu