forked from femtovg/femtovg
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (64 loc) · 2.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust:
- stable
- beta
- 1.76.0 # MSRV
include:
- rust: 1.76.0
pin_bumpaloo: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install system dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libxkbcommon-dev libwayland-dev
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
target: wasm32-unknown-unknown
- name: pin bumpaloo to work with stable rust
if: ${{ matrix.pin_bumpaloo }}
run: cargo generate-lockfile && cargo update -p bumpalo --precise 3.14.0
- run: cargo build --verbose
- run: cargo build --all-features --features glutin/wayland,glutin/egl --verbose
- run: cargo build --no-default-features --verbose
- run: cargo build --verbose --target wasm32-unknown-unknown
- run: cargo build --verbose --examples
- run: cargo build --verbose --examples --features wgpu
- run: cargo build --target=wasm32-unknown-unknown --example demo
- run: cargo test
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install system dependencies
run: sudo apt-get install libxkbcommon-dev libwayland-dev
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
uses: actions-rs/clippy-check@v1
if: github.repository == 'femtovg/femtovg'
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --features glutin/wayland,glutin/egl --no-deps