Skip to content

Commit eca6ac4

Browse files
committed
github/test.yaml: run inside an ubuntu:26.04 container
The host runner stays ubuntu-24.04 but the workflow body runs inside a fresh ubuntu:26.04 image. Add an upfront step to apt-get update + install git ca-certificates so actions/checkout has the tools it needs (the bare image ships neither), and drop sudo from every apt and from install-dependencies.sh since we are already root in the container.
1 parent f74662d commit eca6ac4

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/test.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
test:
4444
timeout-minutes: 60
4545
runs-on: ubuntu-24.04
46+
container:
47+
image: ubuntu:26.04
4648
steps:
4749
- name: Show parameters
4850
run: |
@@ -51,36 +53,38 @@ jobs:
5153
echo "options=${{ inputs.options }}"
5254
echo "test-args=${{ inputs.test-args }}"
5355
56+
- name: Install git for checkout
57+
run: |
58+
apt-get update
59+
apt-get install -y git ca-certificates
60+
5461
- uses: actions/checkout@v5
5562
with:
5663
submodules: "${{ contains(inputs.enables, 'dpdk') }}"
5764

58-
- run: |
59-
sudo apt-get update
60-
6165
- name: Install build dependencies
6266
run: |
63-
sudo ./install-dependencies.sh
67+
./install-dependencies.sh
6468
6569
- name: Install clang++
6670
if: ${{ inputs.compiler == 'clang++' }}
6771
run: |
68-
sudo apt-get -y install clang-20
72+
apt-get -y install clang-20
6973
7074
- name: Install clang-scan-deps
7175
if: ${{ contains(inputs.enables, 'cxx-modules') }}
7276
run: |
73-
sudo apt-get -y install clang-tools-20
77+
apt-get -y install clang-tools-20
7478
7579
- name: Install g++
7680
if: ${{ inputs.compiler == 'g++' }}
7781
run: |
78-
sudo apt-get -y install gcc-14 g++-14
82+
apt-get -y install gcc-14 g++-14
7983
8084
- name: Install ccache
8185
if: ${{ inputs.enable-ccache }}
8286
run: |
83-
sudo apt-get -y install ccache
87+
apt-get -y install ccache
8488
8589
- name: Setup ccache
8690
if: ${{ inputs.enable-ccache }}

0 commit comments

Comments
 (0)