Skip to content

Use title instead of inscription number when present #11039

Use title instead of inscription number when present

Use title instead of inscription number when present #11039

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
env:
RUSTFLAGS: --deny warnings
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Install `mdbook`
run: cargo install [email protected]
- name: Install `mdbook-i18n-helpers`
run: cargo install [email protected]
- name: Install `mdbook-linkcheck`
run: cargo install [email protected]
- name: Build docs
run: mdbook build docs -d build
- name: Build all translations for docs
env:
LANGUAGES: de fr es pt ru zh ja ko fil ar hi it nl
run: |
for lang in ${{ env.LANGUAGES }}; do
echo "::group::Building $lang translation"
MDBOOK_BOOK__LANGUAGE=$lang \
mdbook build docs -d build/$lang
mv docs/build/$lang/html docs/build/html/$lang
echo "::endgroup::"
done
- name: Deploy Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages
publish_dir: docs/build/html
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
override: true
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Clippy
run: cargo clippy --all --all-targets
- name: Format
run: cargo fmt --all -- --check
- name: Check for Forbidden Words
run: |
sudo apt-get install ripgrep
./bin/forbid
test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v5
- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all