Skip to content

Commit 1efc03d

Browse files
committed
ci: add GCC 15,16 coverage
Add CI coverage for GCC 15, 16
1 parent dfca8fc commit 1efc03d

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
ubuntu_24_04_gcc:
7979
strategy:
8080
matrix:
81-
version: [13, 14]
81+
version: [13, 14, 15]
8282
runs-on: ubuntu-24.04
8383
env:
8484
CPP: cpp-${{ matrix.version }}
@@ -102,6 +102,42 @@ jobs:
102102
env:
103103
CONFIG_FLAGS: --disable-silent-rules --enable-debug
104104

105+
ubuntu_25_10_gcc:
106+
strategy:
107+
matrix:
108+
version: [15]
109+
runs-on: ubuntu-24.04
110+
env:
111+
CPP: cpp-${{ matrix.version }}
112+
CC: gcc-${{ matrix.version }}
113+
CXX: g++-${{ matrix.version }}
114+
steps:
115+
- name: "Checkout libcdada"
116+
uses: actions/checkout@v3
117+
with:
118+
path: libcdada
119+
120+
- name: Run tests in Ubuntu 25.10 container
121+
run: |
122+
docker run --rm \
123+
-v ${{ github.workspace }}:/workspace \
124+
-w /workspace \
125+
-e PPA_TOOLCHAIN_REPO="false" \
126+
-e CPP="${CPP}" \
127+
-e CC="${CC}" \
128+
-e CXX="${CXX}" \
129+
-e CONFIG_FLAGS="--disable-silent-rules" \
130+
ubuntu:25.10 \
131+
bash -c "
132+
set -e
133+
apt-get update
134+
apt-get install -y git
135+
git config --global --add safe.directory /workspace/libcdada
136+
./libcdada/.github/workflows/deps.sh gcc ${{ matrix.version }}
137+
cd libcdada && .github/workflows/test_script.sh
138+
CONFIG_FLAGS=\"\$CONFIG_FLAGS --enable-debug\" .github/workflows/test_script.sh
139+
"
140+
105141
ubuntu_22_04_clang:
106142
strategy:
107143
matrix:

.github/workflows/deps.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ else
1212
fi
1313

1414
(sudo --help > /dev/null 2>&1 ) || (apt update && apt install -y sudo software-properties-common automake autoconf libtool make) #containers
15-
sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
15+
if [[ "${PPA_TOOLCHAIN_REPO}" != "false" ]]; then
16+
sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
17+
fi
1618
sudo apt-get update
1719
sudo apt-get install -y python3 valgrind $COMPILER

0 commit comments

Comments
 (0)