mirror of
https://github.com/wez/wezterm.git
synced 2024-12-20 03:41:36 +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
44 lines
986 B
YAML
44 lines
986 B
YAML
name: verify-pages
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "docs/**"
|
|
- "ci/build-docs.sh"
|
|
- "ci/generate-docs.py"
|
|
- "ci/subst-release-info.py"
|
|
- ".github/workflows/verify-pages.yml"
|
|
|
|
jobs:
|
|
build-docs:
|
|
env:
|
|
BUILD_REASON: "PR"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: "Install Rust"
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Install gelatyx
|
|
uses: baptiste0928/cargo-install@v1
|
|
with:
|
|
crate: gelatyx
|
|
args: --locked
|
|
- name: Install mdbook-linkcheck
|
|
uses: baptiste0928/cargo-install@v1
|
|
with:
|
|
crate: mdbook-linkcheck
|
|
args: --locked
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v2
|
|
with:
|
|
key: ${{ github.ref }}
|
|
path: .cache
|
|
- name: Build
|
|
run: ./ci/build-docs.sh
|
|
|