Skip to content

Commit fac843b

Browse files
committed
alpine
1 parent 046603e commit fac843b

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
strategy:
2222
matrix:
2323
image: ["alpine:3.23"]
24+
include:
25+
- image: "alpine:3.23"
26+
with_gui: false
2427
fail-fast: false # Prefer quick result
2528

2629
runs-on: ubuntu-22.04
@@ -52,7 +55,7 @@ jobs:
5255
- name: Install missing software on Alpine
5356
if: contains(matrix.image, 'alpine')
5457
run: |
55-
apk add cmake
58+
apk add cmake make g++ pcre-dev
5659
5760
# needs to be called after the package installation since
5861
# - it doesn't call "apt-get update"
@@ -63,9 +66,10 @@ jobs:
6366

6467
- name: Run CMake
6568
run: |
66-
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
69+
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
6770
6871
- name: CMake build (with GUI)
72+
if: matrix.with_gui
6973
run: |
7074
cmake --build cmake.output -- -j$(nproc)
7175
@@ -96,21 +100,28 @@ jobs:
96100
apt-get update
97101
apt-get install -y g++ make python3 libxml2-utils libpcre3-dev
98102
103+
- name: Install missing software on Alpine
104+
if: contains(matrix.image, 'alpine')
105+
run: |
106+
apk add make g++ pcre-dev
107+
99108
# needs to be called after the package installation since
100109
# - it doesn't call "apt-get update"
101110
- name: ccache
102111
uses: hendrikmuhs/ccache-action@v1.2
103112
with:
104113
key: ${{ github.workflow }}-${{ matrix.image }}
105114

115+
# /usr/lib/ccache/bin - Alpine Linux
116+
106117
- name: Build cppcheck
107118
run: |
108-
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
119+
export PATH="/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
109120
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror"
110121
111122
- name: Build test
112123
run: |
113-
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
124+
export PATH="/usr/lib/ccache/bin:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
114125
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror" testrunner
115126
116127
- name: Run test

0 commit comments

Comments
 (0)