diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40a52603..8ddae674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: push: branches: - main + workflow_dispatch: env: CARGO_TERM_COLOR: always @@ -120,6 +121,9 @@ jobs: matrix: language: ${{ fromJSON(needs.find-languages.outputs.languages) }} fail-fast: false + env: + # Opt-in for checking links in translations - add the language below. + LINK_CHECKED_LANGUAGES: '["en", ]' steps: - name: Checkout uses: actions/checkout@v4 @@ -128,6 +132,8 @@ jobs: - name: Setup Rust cache uses: ./.github/workflows/setup-rust-cache + with: + key: ${{ contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language) }} - name: Install Gettext run: | @@ -148,8 +154,7 @@ jobs: msgfmt -o /dev/null --statistics po/messages.pot - name: Install mdbook-linkcheck - # Opt-in for checking links in translations - add the language below. - if: contains(fromJSON('["en", ]'), matrix.language) + if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language) run: cargo install mdbook-linkcheck --locked --version 0.7.7 - name: Build ${{ matrix.language }} translation diff --git a/.github/workflows/setup-rust-cache/action.yml b/.github/workflows/setup-rust-cache/action.yml index 27ad81d6..ff123aaa 100644 --- a/.github/workflows/setup-rust-cache/action.yml +++ b/.github/workflows/setup-rust-cache/action.yml @@ -2,6 +2,12 @@ name: Setup Rust cache description: Configure the rust-cache workflow. +inputs: + key: + description: Additional caching key + required: false + default: + runs: using: composite steps: @@ -9,6 +15,7 @@ runs: uses: Swatinem/rust-cache@v2 with: # Only save the cache on the main branch to avoid PRs filling - # up the cache. Further, only save it if we are working on the - # English source (or if no language has been set). - save-if: ${{ github.ref == 'refs/heads/main' && (matrix.language == 'en' || matrix.language == '') }} + # up the cache. + save-if: ${{ github.ref == 'refs/heads/main' }} + # Further, save the cache per key - e.g. language grouping. + key: ${{ inputs.key }} diff --git a/src/bare-metal/android/vmbase.md b/src/bare-metal/android/vmbase.md index 417c4dae..42b6592a 100644 --- a/src/bare-metal/android/vmbase.md +++ b/src/bare-metal/android/vmbase.md @@ -28,4 +28,4 @@ pub fn main(arg0: u64, arg1: u64, arg2: u64, arg3: u64) { -[1]: https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/master/vmbase/ +[1]: https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/main/libs/libvmbase/