Skip to content

Commit c4ce84d

Browse files
committed
Use GCC 15 to compile when checking for warnings
This patch skips the alpine CI for now, as alpine seems to lack a gcc-15 package equivalent. ChangeLog: * .github/workflows/ccpp.yml: Use GCC 15 for jobs which check for warnings. Signed-off-by: Owen Avery <[email protected]>
1 parent f87c5a6 commit c4ce84d

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/ccpp.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@ jobs:
1919
# Force locale, in particular for reproducible results re '.github/log_expected_warnings' (see below).
2020
LC_ALL: C.UTF-8
2121

22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-24.04
2323

2424
steps:
2525
- uses: actions/checkout@v4
2626

2727
- name: Install Deps
2828
run: |
29+
sudo apt-get update;
30+
sudo apt-get upgrade;
31+
sudo sed -i 's/Prompt=lts/Prompt=normal/' /etc/update-manager/release-upgrades;
32+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
33+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
34+
sudo add-apt-repository universe;
2935
sudo apt-get update;
3036
sudo apt-get install -y \
3137
automake \
@@ -38,8 +44,7 @@ jobs:
3844
libmpfr-dev \
3945
libmpc-dev \
4046
build-essential \
41-
gcc-multilib \
42-
g++-multilib \
47+
gcc-15 \
4348
dejagnu;
4449
# install Rust directly using rustup
4550
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
@@ -104,13 +109,19 @@ jobs:
104109
# Force locale, in particular for reproducible results re '.github/log_expected_warnings' (see below).
105110
LC_ALL: C.UTF-8
106111

107-
runs-on: ubuntu-22.04
112+
runs-on: ubuntu-24.04
108113

109114
steps:
110115
- uses: actions/checkout@v4
111116

112117
- name: Install Deps
113118
run: |
119+
sudo apt-get update;
120+
sudo apt-get upgrade;
121+
sudo sed -i 's/Prompt=lts/Prompt=normal/' /etc/update-manager/release-upgrades;
122+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
123+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
124+
sudo add-apt-repository universe;
114125
sudo apt-get update;
115126
sudo apt-get install -y \
116127
automake \
@@ -123,8 +134,7 @@ jobs:
123134
libmpfr-dev \
124135
libmpc-dev \
125136
build-essential \
126-
gcc-multilib \
127-
g++-multilib \
137+
gcc-15 \
128138
dejagnu;
129139
# install Rust directly using rustup
130140
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
@@ -189,13 +199,19 @@ jobs:
189199
# Force locale, in particular for reproducible results re '.github/log_expected_warnings' (see below).
190200
LC_ALL: C.UTF-8
191201

192-
runs-on: ubuntu-22.04
202+
runs-on: ubuntu-24.04
193203

194204
steps:
195205
- uses: actions/checkout@v4
196206

197207
- name: Install Deps
198208
run: |
209+
sudo apt-get update;
210+
sudo apt-get upgrade;
211+
sudo sed -i 's/Prompt=lts/Prompt=normal/' /etc/update-manager/release-upgrades;
212+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
213+
sudo do-release-upgrade -f DistUpgradeViewNonInteractive;
214+
sudo add-apt-repository universe;
199215
sudo apt-get update;
200216
sudo apt-get install -y \
201217
automake \
@@ -208,8 +224,7 @@ jobs:
208224
libmpfr-dev \
209225
libmpc-dev \
210226
build-essential \
211-
gcc-multilib \
212-
g++-multilib \
227+
gcc-15 \
213228
dejagnu;
214229
# install Rust directly using rustup
215230
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;

0 commit comments

Comments
 (0)