Validate label and host #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |