-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 993 Bytes
/
test.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
name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build & lint
runs-on: ubuntu-latest
container:
image: ghcr.io/gtk-rs/gtk4-rs/gtk4:latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --check
- run: blueprint-compiler format resources/**/*.blp
# Make the glob work
shell: bash
# Skip blueprint compilation because the gtk4-rs container lacks the
# typelib files required for blueprint to resolve imports.
- run: cargo build --all-features
env:
SKIP_BLUEPRINT: 1
- run: cargo clippy --all-targets
env:
SKIP_BLUEPRINT: 1
- name: cargo deny check
uses: EmbarkStudios/cargo-deny-action@v2
- run: appstreamcli validate --explain resources/de.swsnr.wakeup.metainfo.xml