Skip to content

Commit e94ab41

Browse files
committed
chore(ci): consistently run apt-get update in all jobs that do apt-get install
1 parent a2f62fa commit e94ab41

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
components: clippy, rustfmt
2121

2222
- name: Install dependencies (Linux)
23-
run: sudo apt-get install libusb-1.0-0-dev libudev-dev
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install libusb-1.0-0-dev libudev-dev
2426
2527
- name: Exclude crates
2628
run: |
@@ -111,7 +113,9 @@ jobs:
111113

112114
- name: Install dependencies (Linux)
113115
if: startsWith(matrix.os, 'ubuntu-')
114-
run: sudo apt-get install libusb-1.0-0-dev libudev-dev
116+
run: |
117+
sudo apt-get update
118+
sudo apt-get install libusb-1.0-0-dev libudev-dev
115119
116120
# Some tests are sensitive to timing and can fail
117121
# in Windows and macOS VMs
@@ -157,7 +161,9 @@ jobs:
157161
profile: minimal
158162

159163
- name: Install dependencies (Linux)
160-
run: sudo apt-get install libusb-1.0-0-dev libudev-dev
164+
run: |
165+
sudo apt-get update
166+
sudo apt-get install libusb-1.0-0-dev libudev-dev
161167
162168
- name: Convert feature list to Cargo parameter
163169
run: |

0 commit comments

Comments
 (0)