-
-
Notifications
You must be signed in to change notification settings - Fork 32
52 lines (49 loc) · 1.25 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
on:
push:
branches: [master]
pull_request:
name: CI
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- run: cargo fmt --all -- --check
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
- "1.64.0" # Minimum supported version (from gtk-rs)
os:
- ubuntu-22.04
- macos-latest
steps:
- run: sudo apt-get update -y
if: matrix.os == 'ubuntu-22.04'
- run: sudo apt-get install -y libgtk-4-dev curl libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-22.04'
- run: brew update
if: matrix.os == 'macos-latest'
- run: brew install gtk4 cairo atk
if: matrix.os == 'macos-latest'
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
os: $${{ matrix.os }}
components: clippy
override: true
- name: compile
run: cargo build
- name: clippy
run: cargo clippy