mirror of
https://github.com/wez/wezterm.git
synced 2024-12-29 00:21:57 +03:00
1535d88290
* fix(generate-workflows): Do not use actions-rs [actions-rs/toolchain](https://github.com/actions-rs/toolchain) is unsupported: - Has not recieved updates since November 2020 (~2.5 years) - It uses Node.js 12 and GitHub will stop supporting it Summer this year(?) see this [article](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/). [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) is actively supported and its mostly a 1-1 replacement, the differences are: - Uses the minimal profile always, so no need to specify it. - There is no need to override the toolchain. I also removed some things: - None of the generated actions use `rustfmt` so I removed the component - The toolchain is always stable, so I specified it in the action itself instead of in the action parameters. * ci: Regenerate workflows * fix: Remove ALLOW_UNSECURE_COMMANDS from action * fix(CentOS7): Manually install rustup as CentOS7 uses a very old curl * fix: Restart shell so that the rustup command is available * feat: Add exeption to the CentOS workflow to download rustup * fix: Remove actions-rs/toolchain from remaining workflows * fix: Address review comment
33 lines
585 B
YAML
33 lines
585 B
YAML
name: fmt
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**/*.rs"
|
|
- ".github/workflows/fmt.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**/*.rs"
|
|
- ".github/workflows/fmt.yml"
|
|
|
|
jobs:
|
|
check-code-formatting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: "Install Rust"
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: rustfmt
|
|
- name: Build
|
|
run: |
|
|
source $HOME/.cargo/env
|
|
cargo +nightly fmt --all -- --check
|
|
|
|
|