2020-05-26 08:23:47 +10:00
|
|
|
name: Rust
|
|
|
|
|
2020-09-06 08:45:49 +10:00
|
|
|
on: [push, pull_request]
|
2020-05-26 08:23:47 +10:00
|
|
|
|
|
|
|
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
|
2020-05-26 08:44:15 +10:00
|
|
|
run: |
|
|
|
|
sudo apt update
|
2020-09-12 02:06:13 +10:00
|
|
|
sudo apt install libx11-xcb-dev libxcb-dri2-0-dev libgl1-mesa-dev libxcb-icccm4-dev
|
2020-05-26 08:44:15 +10:00
|
|
|
if: contains(matrix.os, 'ubuntu')
|
2020-06-01 04:29:32 +10:00
|
|
|
- name: Install rust stable
|
2020-05-26 08:23:47 +10:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|