Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,8 @@ jobs:
with:
fetch-depth: 0

- name: Update Rust
run: rustup update

- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache

- name: Install mdbook
uses: ./.github/workflows/install-mdbook
- name: Setup Bazel cache
uses: ./.github/workflows/setup-bazel-cache

- name: Copy latest version of translations
run: cp -r po new-po
Expand All @@ -196,4 +190,4 @@ jobs:
run: git checkout ${{ github.event.pull_request.base.sha }}

- name: Translation diff
run: i18n-report diff po/ new-po/ > $GITHUB_STEP_SUMMARY
run: bazel run @binaries//:i18n-report__i18n-report -- diff $PWD/po/ $PWD/new-po/ > $GITHUB_STEP_SUMMARY
19 changes: 16 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,22 @@ crate.from_cargo(
)
use_repo(crate, "crates")

# Repositories for mdbook plugins. Add new plugins to the
# `mdbook_plugins` repository. If this fails due to conflicts in their
# dependencies, isolate it below with additional repositories.
# Repositories for binary Rust artifacts. Add new `mdbook` plugins to
# the `binaries` repository, and if this fails due to conflicts in
# their dependencies, isolate it below with additional repositories.
crate.spec(
artifact = "bin",
package = "i18n-report",
repositories = ["binaries"],
version = "0.2.0",
)
crate.from_specs(
name = "binaries",
generate_binaries = True,
host_tools = "@rust_host_tools_nightly",
)
use_repo(crate, "binaries")

crate.spec(
artifact = "bin",
package = "mdbook-i18n-helpers",
Expand Down
1,032 changes: 885 additions & 147 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

Loading