maplibre-rs/.github/workflows/run-tests.yml
2022-09-17 21:11:36 +02:00

31 lines
857 B
YAML

name: Run tests
on:
workflow_call:
jobs:
run-tests:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: extractions/setup-just@v1
- name: Install toolchain
shell: bash
run: |
just stable-toolchain
just stable-targets x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v1
- name: Install GPU Drivers
uses: ./.github/actions/install-driver
- name: Test Vulkan
shell: bash
# TODO: Additional test runs for different targets
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