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

62 lines
1.4 KiB
YAML
Raw Normal View History

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
with:
submodules: "recursive"
- 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
2020-12-12 11:45:28 +00:00
- name: Run idiomatic bindings tests
2020-10-18 16:23:26 +00:00
run: cargo test --verbose
2020-12-12 11:45:28 +00:00
- name: Run FFI tests
run: cd implot-sys/ && 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
2021-12-05 07:00:34 +00:00
build-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
2021-12-05 07:00:34 +00:00
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --verbose
- name: Run idiomatic bindings tests
run: cargo test --verbose
- name: Run FFI tests
run: cd implot-sys/ && cargo test --verbose
- 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