mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
36 lines
1001 B
YAML
36 lines
1001 B
YAML
name: Run tests
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
run-tests:
|
|
name: Test
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup binstall
|
|
uses: ./.github/actions/setup-binstall
|
|
- name: Install just
|
|
uses: ./.github/actions/cargo-install
|
|
with:
|
|
name: just
|
|
- name: Install toolchain
|
|
shell: bash
|
|
run: |
|
|
just stable-toolchain
|
|
just stable-targets x86_64-unknown-linux-gnu
|
|
- uses: Swatinem/rust-cache@v2
|
|
- 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
|