Merge pull request #87 from max-ishere/pr/clap_conflict #115
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
# SPDX-FileCopyrightText: 2022 Harish Rajagopal <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install GTK4 | |
run: sudo apt update && sudo apt install libgtk-4-dev build-essential | |
- name: Install Rust | |
id: toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Restore build cache | |
uses: Swatinem/rust-cache@v2 | |
- name: pre-commit | |
uses: pre-commit/[email protected] | |
- uses: pre-commit-ci/[email protected] | |
if: always() |