1
0
Fork 0
baseview/.github/workflows/rust.yml

30 lines
871 B
YAML
Raw Normal View History

name: Rust
2020-09-06 08:45:49 +10:00
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
2020-06-01 04:29:32 +10:00
- name: Install XCB and GL dependencies
run: |
sudo apt update
sudo apt install libx11-xcb-dev libxcb-dri2-0-dev libgl1-mesa-dev libxcb-icccm4-dev libxcursor-dev
if: contains(matrix.os, 'ubuntu')
2020-06-01 04:29:32 +10:00
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build with default features
2021-07-16 09:10:29 +10:00
run: cargo build --examples --workspace --verbose
- name: Build again with all features
run: cargo build --examples --workspace --all-features --verbose
- name: Run tests
run: cargo test --examples --workspace --all-features --verbose