Skip to content

Commit 574275e

Browse files
authored
Update CI runner to 24.04 (#28)
1 parent cfe6eff commit 574275e

2 files changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/exaforce-publish.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
jobs:
3434
generate-publish-metadata:
3535
name: Generate Publish-related Metadata
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-24.04
3737
timeout-minutes: 5
3838
outputs:
3939
vector_version: ${{ steps.generate-publish-metadata.outputs.vector_version }}
@@ -47,7 +47,7 @@ jobs:
4747

4848
build-x86_64-unknown-linux-gnu-packages:
4949
name: Build Vector for x86_64-unknown-linux-gnu (.tar.gz, DEB, RPM)
50-
runs-on: ubuntu-20.04-xl
50+
runs-on: ubuntu-24.04-xl
5151
needs: generate-publish-metadata
5252
timeout-minutes: 90
5353
env:
@@ -57,13 +57,7 @@ jobs:
5757
- name: Checkout Vector
5858
uses: actions/checkout@v4
5959
- name: Bootstrap runner environment (Ubuntu-specific)
60-
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
61-
# Required for some reason for 1.83
62-
- name: Install Rust toolchain explicitly
63-
run: |
64-
rustup set profile minimal
65-
rustup toolchain install $(grep 'channel' rust-toolchain.toml | cut -d '"' -f 2) --profile minimal
66-
rustup default $(grep 'channel' rust-toolchain.toml | cut -d '"' -f 2)
60+
run: sudo -E bash scripts/environment/bootstrap-ubuntu-24.04.sh
6761
- name: Bootstrap runner environment (generic)
6862
run: bash scripts/environment/prepare.sh
6963
- name: Build Vector
@@ -78,7 +72,7 @@ jobs:
7872

7973
build-aarch64-unknown-linux-gnu-packages:
8074
name: Build Vector for aarch64-unknown-linux-gnu (.tar.gz)
81-
runs-on: ubuntu-20.04-xl
75+
runs-on: ubuntu-24.04-xl
8276
timeout-minutes: 180
8377
needs: generate-publish-metadata
8478
env:
@@ -88,13 +82,7 @@ jobs:
8882
- name: Checkout Vector
8983
uses: actions/checkout@v4
9084
- name: Bootstrap runner environment (Ubuntu-specific)
91-
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
92-
# Required for some reason for 1.83
93-
- name: Install Rust toolchain explicitly
94-
run: |
95-
rustup set profile minimal
96-
rustup toolchain install $(grep 'channel' rust-toolchain.toml | cut -d '"' -f 2) --profile minimal
97-
rustup default $(grep 'channel' rust-toolchain.toml | cut -d '"' -f 2)
85+
run: sudo -E bash scripts/environment/bootstrap-ubuntu-24.04.sh
9886
- name: Bootstrap runner environment (generic)
9987
run: bash scripts/environment/prepare.sh
10088
- name: Build Vector
@@ -155,7 +143,7 @@ jobs:
155143

156144
publish-docker:
157145
name: Publish to Docker
158-
runs-on: ubuntu-20.04
146+
runs-on: ubuntu-24.04
159147
timeout-minutes: 15
160148
needs:
161149
- generate-publish-metadata

scripts/environment/bootstrap-ubuntu-20.04.sh renamed to scripts/environment/bootstrap-ubuntu-24.04.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#! /usr/bin/env bash
2+
# Refer to https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
3+
# for all runner information such as OS version and installed software.
4+
25
set -e -o verbose
36

47
if [ -n "$RUSTFLAGS" ]
@@ -22,7 +25,6 @@ apt-get install --yes \
2225

2326
# Deps
2427
apt-get install --yes --no-install-recommends \
25-
awscli \
2628
build-essential \
2729
ca-certificates \
2830
cmake \
@@ -75,13 +77,12 @@ locale-gen en_US.UTF-8
7577
dpkg-reconfigure locales
7678

7779
if ! command -v rustup ; then
78-
# Rust/Cargo should already be installed on both GH Actions-provided Ubuntu 20.04 images _and_
79-
# by our own Ubuntu 20.04 images
80+
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#rust-tools
8081
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
8182
fi
8283

83-
# Rust/Cargo should already be installed on both GH Actions-provided Ubuntu 20.04 images _and_
84-
# by our own Ubuntu 20.04 images, so this is really just make sure the path is configured.
84+
# Rust/Cargo should already be installed on both GH Actions-provided Ubuntu 24.04 images _and_
85+
# by our own Ubuntu 24.04 images, so this is really just make sure the path is configured.
8586
if [ -n "${CI-}" ] ; then
8687
echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
8788
# we often run into OOM issues in CI due to the low memory vs. CPU ratio on c5 instances

0 commit comments

Comments
 (0)