name: build on: workflow_dispatch: push: branches: [ main, master ] pull_request: branches: [ main, master ] env: CARGO_TERM_COLOR: always jobs: check: name: Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: "[Ubuntu] install dependencies" run: sudo apt update && sudo apt install libgtk-3-dev - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: actions-rs/cargo@v1 with: command: check args: --all-features fmt: name: Rustfmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check