-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 976 Bytes
/
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
name: Build
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/gtk-rs/gtk3-rs/gtk3:latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
- "1.51.0"
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose
# clippy
- run: rustup component add clippy
if: matrix.rust == 'beta' || matrix.rust == 'stable'
- working-directory: ${{ matrix.conf.name }}
name: clippy ${{ matrix.conf.name }}
run: cargo clippy --all-targets -- -D warnings
if: matrix.rust == 'beta' || matrix.rust == 'stable'
# tests
- name: Run tests
run: xvfb-run --auto-servernum cargo test --verbose
- uses: bcomnes/cleanup-xvfb@v1