lvgl-rs/.github/workflows/rust.yml

34 lines
686 B
YAML

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
DEP_LV_CONFIG_PATH: /home/runner/work/lvgl-rs/lvgl-rs/examples/include
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update APT
run: sudo apt-get update
- name: Install SDL2
run: sudo apt install libsdl2-dev libsdl2-2.0-0
- uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: cargo build --verbose
- name: Run tests
# LVGL is not thread safe, we need to run tests sequentially
run: cargo test --verbose -- --nocapture --test-threads 1