
* CI: update to checkout@v4 action Not sure why they decided to bump a major version. It seems like this is unnecessary churn: https://github.com/actions/checkout/pull/1436#issuecomment-1737711301 * CI: replace archived `actions-rs/toolchain` It's been unmaintained for four years and has been throwing warnings in CI: > The `set-output` command is deprecated and will be disabled soon. * CI: Bump `cargo-install` action. This should fix the remaining warnings in CI? * CI: mdbook-linkcheck: workaround for build error
21 lines
627 B
YAML
21 lines
627 B
YAML
name: Setup Rust Environment
|
|
description: Sets up the Rust environment for the CI workflow
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: llvm-tools, clippy, rustfmt
|
|
- uses: actions/checkout@v4
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Build docs
|
|
shell: pwsh
|
|
run: cargo doc
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
- name: Set LIBCLANG_PATH
|
|
shell: pwsh
|
|
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
|
|
- name: install cargo-make
|
|
shell: pwsh
|
|
run: cargo install --force cargo-make
|