Skip to content

[CI] Add retry to 'Read Configure NDK version' #569

Description

@david-allison

The following script needs a retry on the cargo install line:

- name: Read configured NDK version
run: |
cargo install toml-cli
ANDROID_NDK_VERSION=$(toml get gradle/libs.versions.toml versions.ndk --raw)
echo "ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION" >> $GITHUB_ENV
shell: bash

Causes:

info: syncing channel updates for '1.88.0-x86_64-pc-windows-msvc'
error: failed to download file error=Reqwest(reqwest::Error { kind: Request, url: "https://static.rust-lang.org/dist/channel-rust-1.88.0.toml.sha256", source: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." } }) })
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-1.88.0.toml.sha256' to 'C:\Users\runneradmin\.rustup\tmp\tjgt4vqc1h5a_e99_file': error downloading file: error sending request for url (https://static.rust-lang.org/dist/channel-rust-1.88.0.toml.sha256): client error (Connect): An existing connection was forcibly closed by the remote host. (os error 10054)

https://github.com/ankidroid/Anki-Android-Backend/actions/runs/17214363705/job/48834143922

#564 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions