2022-03-18 17:36:42 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 2 5 * *'
|
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-03-17 18:34:46 +00:00
|
|
|
run: sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev
|
|
|
|
|
|
|
|
- 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-03-18 17:36:42 +00:00
|
|
|
command: build
|