fix: ci rustfmt toolchain #29
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: Push | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Install depencencies | |
run: sudo apt-get install -y libxkbcommon-dev | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: clippy | |
uses: auguwu/clippy-action@1.4.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: format | |
uses: mbrobbel/rustfmt-check@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |