Skip to content

Commit 9c37115

Browse files
committed
.github: update test workflow to Fedora 42
Ubuntu 24.04 has too old compilers (clang 18 and gcc 13); the current ones are clang 20 and gcc 15. Update the workflow to run on Fedora 42 via a container so we access the most recent compilers. Since the basic Fedora container doesn't come with git installed, we must install it before we checkout submodules.
1 parent e73f359 commit 9c37115

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,34 @@ jobs:
3838
test:
3939
timeout-minutes: 40
4040
runs-on: ubuntu-24.04
41+
container: fedora:42
4142
steps:
43+
- name: Install git
44+
run: |
45+
dnf -y install git-core
46+
4247
- uses: actions/checkout@v4
4348
with:
4449
submodules: "${{ contains(inputs.enables, 'dpdk') }}"
4550

46-
- run: |
47-
sudo apt-get update
48-
4951
- name: Install build dependencies
5052
run: |
51-
sudo ./install-dependencies.sh
53+
./install-dependencies.sh
5254
5355
- name: Install clang++
5456
if: ${{ inputs.compiler == 'clang++' }}
5557
run: |
56-
sudo apt-get -y install clang
58+
dnf install -y clang
5759
5860
- name: Install clang-scan-deps
5961
if: ${{ contains(inputs.enables, 'cxx-modules') }}
6062
run: |
61-
sudo apt-get -y install clang-tools
63+
dnf install -y clang-tools-extra
6264
6365
- name: Install ccache
6466
if: ${{ inputs.enable-ccache }}
6567
run: |
66-
sudo apt-get -y install ccache
68+
dnf install -y ccache
6769
6870
- name: Setup ccache
6971
if: ${{ inputs.enable-ccache }}

0 commit comments

Comments
 (0)