You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-05 14:10:29 +02:00
Update to Rust 2024 edition. (#2658)
This commit is contained in:
2
.github/workflows/build.sh
vendored
2
.github/workflows/build.sh
vendored
@ -25,7 +25,7 @@ else
|
||||
# Back-date the sources to POT-Creation-Date. The content lives in two
|
||||
# directories:
|
||||
rm -r src/ third_party/
|
||||
git restore --source "$(git rev-list -n 1 --before "$pot_creation_date" @)" src/ third_party/
|
||||
git restore --source "$(git rev-list -n 1 --before "$pot_creation_date" @)" src/ third_party/ book.toml
|
||||
# Set language and adjust site URL. Clear the redirects since they are
|
||||
# in sync with the source files, not the translation.
|
||||
export MDBOOK_BOOK__LANGUAGE=$book_lang
|
||||
|
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -161,9 +161,11 @@ jobs:
|
||||
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
|
||||
msgfmt -o /dev/null --statistics po/messages.pot
|
||||
|
||||
- name: Install mdbook-linkcheck
|
||||
- name: Install mdbook-linkcheck2
|
||||
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
|
||||
run: cargo install mdbook-linkcheck --locked --version 0.7.7
|
||||
run: |
|
||||
cargo uninstall mdbook-linkcheck || true
|
||||
cargo install mdbook-linkcheck2 --locked --version 0.9.1
|
||||
|
||||
- name: Build ${{ matrix.language }} translation
|
||||
run: |
|
||||
@ -210,6 +212,9 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Update Rust
|
||||
run: rustup update
|
||||
|
||||
- name: Setup Rust cache
|
||||
uses: ./.github/workflows/setup-rust-cache
|
||||
|
||||
|
4
.github/workflows/install-mdbook/action.yml
vendored
4
.github/workflows/install-mdbook/action.yml
vendored
@ -13,6 +13,6 @@ runs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk texlive-lang-arabic librsvg2-bin fonts-noto
|
||||
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-linux-amd64.tar.gz | tar zxf -
|
||||
echo "$PWD/pandoc-3.6.2/bin" >> $GITHUB_PATH
|
||||
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.7.0.1/pandoc-3.7.0.1-linux-amd64.tar.gz | tar zxf -
|
||||
echo "$PWD/pandoc-3.7.0.1/bin" >> $GITHUB_PATH
|
||||
shell: bash
|
||||
|
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -35,6 +35,9 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # We need the full history for build.sh below.
|
||||
|
||||
- name: Update Rust
|
||||
run: rustup update
|
||||
|
||||
- name: Setup Rust cache
|
||||
uses: ./.github/workflows/setup-rust-cache
|
||||
|
||||
|
Reference in New Issue
Block a user