Skip to content

Commit 93fa0cd

Browse files
authored
Update workflow runners (#1590)
This change updates the workflow runners to move away from the soon to be deprecated `ubuntu-20.04` image and use `ubuntu-22.04` instead. The intention is to continue to use the oldest supported version to ensure binaries can build and run on that version. `ubuntu-latest` is used for the linting related jobs. Additionally, uses of `apt` were changed to `apt-get` to silence warnings in CI about how `apt` is not meant to be used in scripts. Ref: actions/runner-images#11101
1 parent d491d7b commit 93fa0cd

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222

2323
- name: Install protoc
24-
run: sudo apt install -y protobuf-compiler
24+
run: sudo apt-get install -y protobuf-compiler
2525

2626
- name: Install Rust toolchain
2727
run: |
@@ -46,7 +46,7 @@ jobs:
4646
matrix:
4747
include:
4848
- target: x86_64-unknown-linux-gnu
49-
os: ubuntu-20.04
49+
os: ubuntu-22.04
5050
- target: aarch64-unknown-linux-gnu
5151
os: [self-hosted, linux, arm64]
5252
- target: x86_64-apple-darwin
@@ -70,7 +70,7 @@ jobs:
7070

7171
- if: ${{ runner.os == 'Linux' }}
7272
name: Install protoc
73-
run: sudo apt update && sudo apt install -y protobuf-compiler
73+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
7474

7575
- if: ${{ runner.os == 'Windows' }}
7676
name: Install protoc
@@ -96,7 +96,7 @@ jobs:
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: Install host dependencies
99-
run: sudo apt install -yq zip
99+
run: sudo apt-get install -yq zip
100100

101101
- name: Checkout the repo
102102
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
rustfmt:
1717
if: github.event_name != 'schedule'
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout the repo
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
include:
35-
- os: ubuntu-20.04
35+
- os: ubuntu-latest
3636
flags: --all-features
3737
- os: macos-14
3838
flags: --all-features
@@ -49,7 +49,7 @@ jobs:
4949

5050
- if: ${{ runner.os == 'Linux' }}
5151
name: Install protoc
52-
run: sudo apt install -y protobuf-compiler
52+
run: sudo apt-get install -y protobuf-compiler
5353

5454
- if: ${{ runner.os == 'Windows' }}
5555
name: Install protoc
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
fail-fast: false
6767
matrix:
68-
os: [ubuntu-20.04, macos-14]
68+
os: [ubuntu-22.04, macos-14]
6969
include:
7070
- os: windows-latest
7171
flags: --no-default-features -F extensions
@@ -80,7 +80,7 @@ jobs:
8080

8181
- if: ${{ runner.os == 'Linux' }}
8282
name: Install protoc
83-
run: sudo apt install -y protobuf-compiler
83+
run: sudo apt-get install -y protobuf-compiler
8484

8585
- if: ${{ runner.os == 'Windows' }}
8686
name: Install protoc
@@ -96,7 +96,7 @@ jobs:
9696
strategy:
9797
fail-fast: false
9898
matrix:
99-
os: [ubuntu-20.04, macos-14, windows-latest]
99+
os: [ubuntu-22.04, macos-14, windows-latest]
100100
runs-on: ${{ matrix.os }}
101101
steps:
102102
- name: Checkout the repo
@@ -108,7 +108,7 @@ jobs:
108108

109109
- if: ${{ runner.os == 'Linux' }}
110110
name: Install protoc
111-
run: sudo apt install -y protobuf-compiler
111+
run: sudo apt-get install -y protobuf-compiler
112112

113113
- if: ${{ runner.os == 'Windows' }}
114114
name: Install protoc
@@ -127,7 +127,7 @@ jobs:
127127
strategy:
128128
fail-fast: false
129129
matrix:
130-
os: [ubuntu-20.04, macos-14]
130+
os: [ubuntu-22.04, macos-14]
131131
runs-on: ${{ matrix.os }}
132132
steps:
133133
- name: Checkout the repo
@@ -139,7 +139,7 @@ jobs:
139139

140140
- if: ${{ runner.os == 'Linux' }}
141141
name: Install protoc
142-
run: sudo apt install -y protobuf-compiler
142+
run: sudo apt-get install -y protobuf-compiler
143143

144144
- name: Install Rust toolchain
145145
run: rustup toolchain install --no-self-update stable --profile minimal

0 commit comments

Comments
 (0)