mirror of
https://github.com/transistorfet/moa.git
synced 2024-11-24 08:30:50 +00:00
7dac32d844
* Added github actions for PRs * Added some rustfmt::skip attributes * Applied formatting * Added rustfmt component in action * Configured to use rustfmt version 2 which fixes some comment formatting * Removed ready_for_review condition for github actions Since it has the synchronize condition, it will update after each commit, whether in draft or not, so I think this should be alright
33 lines
682 B
YAML
33 lines
682 B
YAML
name: rustfmt
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
|
|
|
|
- name: Select rust version
|
|
run: |
|
|
rustup toolchain install nightly --profile minimal --no-self-update
|
|
rustup default nightly
|
|
rustup component add rustfmt
|
|
|
|
- name: Check rustfmt
|
|
run: |
|
|
cargo +nightly fmt --check
|