Skip to content

Commit db0fe09

Browse files
committed
CI-unixish-docker.yml: added alpine:3.23
1 parent a1dbf6f commit db0fe09

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/CI-unixish-docker.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
image: ["ubuntu:24.04", "ubuntu:25.10"]
23+
include:
24+
- image: "ubuntu:24.04"
25+
with_gui: true
26+
- image: "ubuntu:25.10"
27+
with_gui: true
28+
- image: "alpine:3.23"
29+
with_gui: false
2430
fail-fast: false # Prefer quick result
2531

2632
runs-on: ubuntu-22.04
@@ -45,9 +51,15 @@ jobs:
4551
apt-get install -y cmake g++ make libxml2-utils libpcre3-dev
4652
4753
- name: Install missing software (gui) on latest ubuntu
54+
if: contains(matrix.image, 'ubuntu')
4855
run: |
4956
apt-get install -y qt6-base-dev qt6-charts-dev qt6-tools-dev
5057
58+
- name: Install missing software on Alpine
59+
if: contains(matrix.image, 'alpine')
60+
run: |
61+
apk add cmake make g++ pcre-dev
62+
5163
# needs to be called after the package installation since
5264
# - it doesn't call "apt-get update"
5365
- name: ccache
@@ -57,9 +69,9 @@ jobs:
5769

5870
- name: Run CMake
5971
run: |
60-
cmake -S . -B cmake.output -Werror=dev -DHAVE_RULES=On -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
72+
cmake -S . -B cmake.output -Werror=dev -DHAVE_RULES=On -DBUILD_TESTING=On -DBUILD_GUI=${{ matrix.with_gui }} -DWITH_QCHART=On -DBUILD_TRIAGE=${{ matrix.with_gui }} -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
6173
62-
- name: CMake build (with GUI)
74+
- name: CMake build
6375
run: |
6476
cmake --build cmake.output -- -j$(nproc)
6577
@@ -71,7 +83,7 @@ jobs:
7183

7284
strategy:
7385
matrix:
74-
image: ["ubuntu:24.04", "ubuntu:25.10"]
86+
image: ["ubuntu:24.04", "ubuntu:25.10", "alpine:3.23"]
7587
fail-fast: false # Prefer quick result
7688

7789
runs-on: ubuntu-22.04
@@ -90,21 +102,28 @@ jobs:
90102
apt-get update
91103
apt-get install -y g++ make python3 libxml2-utils libpcre3-dev
92104
105+
- name: Install missing software on Alpine
106+
if: contains(matrix.image, 'alpine')
107+
run: |
108+
apk add make g++ pcre-dev bash python3
109+
93110
# needs to be called after the package installation since
94111
# - it doesn't call "apt-get update"
95112
- name: ccache
96113
uses: hendrikmuhs/ccache-action@v1.2
97114
with:
98115
key: ${{ github.workflow }}-${{ matrix.image }}
99116

117+
# /usr/lib/ccache/bin - Alpine Linux
118+
100119
- name: Build cppcheck
101120
run: |
102-
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
121+
export PATH="/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
103122
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror"
104123
105124
- name: Build test
106125
run: |
107-
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
126+
export PATH="/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
108127
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror" testrunner
109128
110129
- name: Run test

0 commit comments

Comments
 (0)