summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody P Schafer <dev@codyps.com>2021-10-22 10:43:25 -0400
committerCody P Schafer <dev@codyps.com>2021-10-22 10:48:52 -0400
commitf6d3e14a5a78a31f9ce884d3b9f86fc1ebecf329 (patch)
tree941cfbd3997ac6fc28163e9b92281a6a01bb521f
parent34244e153edd7246cf76d2afba49d8dfe4e2bd2f (diff)
downloadrust-libzfs-f6d3e14a5a78a31f9ce884d3b9f86fc1ebecf329.zip
gha: always run apt update to avoid breakage when azure.archive.ubuntu.com drops packages
-rw-r--r--.github/workflows/check.yml8
-rw-r--r--.github/workflows/codecov.yml5
-rw-r--r--.github/workflows/coveralls.yml5
-rw-r--r--.github/workflows/test.yml2
4 files changed, 17 insertions, 3 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 2b3c7ea..c468983 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -21,9 +21,11 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- - name: Configure apt
- run: echo 'APT::Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
-
+ # note: this works around the gha images sometimes not being up-to-date
+ # with ubuntu mirrors, which can result in 404s when fetching packages
+ - name: apt-get update
+ run: sudo apt-get -o Acquire::Retries=3 update
+
- name: Install dependencies
run: sudo apt install libzfslinux-dev zfsutils-linux
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml
index 37d1869..d746683 100644
--- a/.github/workflows/codecov.yml
+++ b/.github/workflows/codecov.yml
@@ -21,6 +21,11 @@ jobs:
- uses: Swatinem/rust-cache@v1
+ # note: this works around the gha images sometimes not being up-to-date
+ # with ubuntu mirrors, which can result in 404s when fetching packages
+ - name: apt-get update
+ run: sudo apt-get -o Acquire::Retries=3 update
+
- name: Install dependencies
run: sudo apt install libzfslinux-dev zfsutils-linux
diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml
index 9d6eae2..1d4782a 100644
--- a/.github/workflows/coveralls.yml
+++ b/.github/workflows/coveralls.yml
@@ -20,6 +20,11 @@ jobs:
- uses: Swatinem/rust-cache@v1
+ # note: this works around the gha images sometimes not being up-to-date
+ # with ubuntu mirrors, which can result in 404s when fetching packages
+ - name: apt-get update
+ run: sudo apt-get -o Acquire::Retries=3 update
+
- name: Install dependencies
run: sudo apt install libzfslinux-dev zfsutils-linux
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f3699bc..8ca6541 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -31,6 +31,8 @@ jobs:
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1
+ # note: this works around the gha images sometimes not being up-to-date
+ # with ubuntu mirrors, which can result in 404s when fetching packages
- name: apt-get update
run: sudo apt-get -o Acquire::Retries=3 update