2020-10-18 16:29:40 +00:00
|
|
|
name: Tests
|
2020-10-18 16:23:26 +00:00
|
|
|
|
2020-10-18 16:27:10 +00:00
|
|
|
|
2020-10-18 16:23:26 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-18 16:27:10 +00:00
|
|
|
- uses: jwsi/submodule-checkout@v1
|
2020-10-27 07:14:33 +00:00
|
|
|
- name: Install dependencies
|
2020-10-27 07:15:37 +00:00
|
|
|
run: sudo apt-get update && sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev
|
2020-10-18 16:23:26 +00:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|
2020-10-30 11:57:02 +00:00
|
|
|
- name: Build glium demo
|
|
|
|
run: cd implot-examples/implot-glium-demo && cargo build
|
|
|
|
- name: Build wgpu demo
|
|
|
|
run: cd implot-examples/implot-wgpu-demo && cargo build
|