2020-06-14 23:45:26 +00:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
2020-06-14 23:53:42 +00:00
|
|
|
DEP_LV_CONFIG_PATH: /home/runner/work/lvgl-rs/lvgl-rs/examples/include
|
2020-06-14 23:45:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-06-19 13:17:13 +00:00
|
|
|
- name: Update APT
|
|
|
|
run: sudo apt-get update
|
|
|
|
|
2020-06-19 13:09:58 +00:00
|
|
|
- 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
|
|
|
|
run: cargo test --verbose
|