CI: retry apt operations

This commit is contained in:
Scott Lamb 2023-01-11 22:33:04 -08:00
parent 098b54c9f9
commit 6a49bffff2
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ jobs:
cargo-${{ matrix.rust }}-
cargo-
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libncurses-dev libsqlite3-dev pkgconf
# The retry here is to work around "Unable to connect to azure.archive.ubuntu.com" errors.
# https://github.com/actions/runner-images/issues/6894
run: sudo apt-get --option=APT::Acquire::Retries=3 update && sudo apt-get --option=APT::Acquire::Retries=3 install libncurses-dev libsqlite3-dev pkgconf
- name: Install Rust
uses: actions-rs/toolchain@v1
with: