Skip to content

Commit d959fb3

Browse files
authored
ci: add 'sudo apt-get update' step to all workflows (#346)
1 parent 6ec2cca commit d959fb3

8 files changed

+12
-0
lines changed

.github/workflows/devel_docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- run: sudo apt-get update
1415
-
1516
name: Checkout the repository
1617
uses: actions/checkout@v2

.github/workflows/python_package.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1515

1616
steps:
17+
- if: runner.os == 'Linux'
18+
run: sudo apt-get update
1719
- uses: actions/checkout@v4
1820

1921
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/python_release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ jobs:
136136
runs-on: ubuntu-latest
137137
needs: [macos, windows, linux]
138138
steps:
139+
- run: sudo apt-get update
139140
- uses: actions/download-artifact@v3
140141
with:
141142
name: wheels

.github/workflows/python_test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
matrix:
2727
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2828
steps:
29+
- run: sudo apt-get update
2930
- uses: actions/checkout@v4
3031

3132
- uses: extractions/setup-just@v2
@@ -72,6 +73,7 @@ jobs:
7273

7374

7475
steps:
76+
- run: sudo apt-get update
7577
- uses: actions/checkout@v4
7678

7779
- uses: extractions/setup-just@v2

.github/workflows/release_docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- arch: arm64
1919
label: aarch64
2020
steps:
21+
- run: sudo apt-get update
2122
-
2223
name: Checkout the repository
2324
uses: actions/checkout@v3

.github/workflows/rust_lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
SCCACHE_ERROR_LOG: /tmp/sccache_log.txt
2828
SCCACHE_LOG: info
2929
steps:
30+
- run: sudo apt-get update
3031
- uses: actions/checkout@v4
3132
- uses: dtolnay/rust-toolchain@stable
3233
with:
@@ -53,6 +54,7 @@ jobs:
5354
SCCACHE_ERROR_LOG: /tmp/sccache_log.txt
5455
SCCACHE_LOG: info
5556
steps:
57+
- run: sudo apt-get update
5658
- uses: actions/checkout@v4
5759
- run: rustup toolchain install stable
5860

.github/workflows/rust_release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
SCCACHE_ERROR_LOG: /tmp/sccache_log.txt
1919
SCCACHE_LOG: info
2020
steps:
21+
- run: sudo apt-get update
2122
- uses: actions/checkout@v4
2223
- uses: actions-rs/toolchain@v1
2324
with:

.github/workflows/rust_test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
SCCACHE_LOG: info
2828

2929
steps:
30+
- run: sudo apt-get update
3031
- uses: actions/checkout@v4
3132

3233
- name: Install Rust toolchain
@@ -58,6 +59,7 @@ jobs:
5859
SCCACHE_LOG: info
5960

6061
steps:
62+
- run: sudo apt-get update
6163
- uses: actions/checkout@v4
6264

6365
- name: Install Rust toolchain

0 commit comments

Comments
 (0)