2022-03-18 17:36:42 +00:00
|
|
|
on:
|
|
|
|
push:
|
2022-04-08 14:56:54 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2022-03-17 18:34:46 +00:00
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
jobs:
|
2022-03-18 17:36:42 +00:00
|
|
|
build:
|
|
|
|
name: Rust (${{ matrix.toolchain }}) on ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
|
|
toolchain: [ stable ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-03-17 18:34:46 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-03-18 17:36:42 +00:00
|
|
|
- name: Install dependencies on Ubuntu
|
|
|
|
if: startsWith(matrix.os, 'ubuntu')
|
2022-05-18 20:38:56 +00:00
|
|
|
run: sudo apt-get update && sudo apt-get install cmake pkg-config libgtk-3-dev
|
2022-03-17 18:34:46 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2022-03-18 17:36:42 +00:00
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
2022-03-17 18:34:46 +00:00
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
2022-04-03 19:44:31 +00:00
|
|
|
command: build
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --workspace
|