mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
32 lines
916 B
YAML
32 lines
916 B
YAML
name: Build demo for Linux
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
demo-linux:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: extractions/setup-just@v1
|
|
- name: Install toolchain
|
|
shell: bash
|
|
run: just default-toolchain
|
|
- uses: Swatinem/rust-cache@v1
|
|
- name: Install Dependencies
|
|
shell: bash
|
|
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
|
|
- name: Build
|
|
shell: bash
|
|
run: cargo build -p maplibre-demo
|
|
- name: Check
|
|
shell: bash
|
|
run: just check maplibre-demo x86_64-unknown-linux-gnu
|
|
- name: Test x86_64 linux
|
|
shell: bash
|
|
run: just test maplibre-demo x86_64-unknown-linux-gnu
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: maplibre-rs
|
|
path: target/x86_64-unknown-linux-gnu/debug/maplibre-demo |