-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (44 loc) · 1.06 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
name: CI
on:
push:
branches: [master, staging, trying]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: check
runs-on: ubuntu-22.04
strategy:
matrix:
rust:
- stable
- beta
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: swatinem/rust-cache@v1
- name: Install system dependencies
run: sudo apt update && sudo apt install -y libgtk-4-dev build-essential
- name: cargo-check
uses: actions-rs/cargo@v1
with:
command: check
# We need some "accummulation" job here because bors fails (timeouts) to
# listen on matrix builds.
# Hence, we have some kind of dummy here that bors can listen on
ci-success:
name: CI
if: ${{ success() }}
needs:
- check
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0