|
21 | 21 | strategy: |
22 | 22 | matrix: |
23 | 23 | image: ["alpine:3.23"] |
| 24 | + include: |
| 25 | + - image: "alpine:3.23" |
| 26 | + with_gui: false |
24 | 27 | fail-fast: false # Prefer quick result |
25 | 28 |
|
26 | 29 | runs-on: ubuntu-22.04 |
|
52 | 55 | - name: Install missing software on Alpine |
53 | 56 | if: contains(matrix.image, 'alpine') |
54 | 57 | run: | |
55 | | - apk add cmake |
| 58 | + apk add cmake make g++ pcre-dev |
56 | 59 |
|
57 | 60 | # needs to be called after the package installation since |
58 | 61 | # - it doesn't call "apt-get update" |
|
63 | 66 |
|
64 | 67 | - name: Run CMake |
65 | 68 | 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 |
67 | 70 |
|
68 | 71 | - name: CMake build (with GUI) |
| 72 | + if: matrix.with_gui |
69 | 73 | run: | |
70 | 74 | cmake --build cmake.output -- -j$(nproc) |
71 | 75 |
|
@@ -96,21 +100,28 @@ jobs: |
96 | 100 | apt-get update |
97 | 101 | apt-get install -y g++ make python3 libxml2-utils libpcre3-dev |
98 | 102 |
|
| 103 | + - name: Install missing software on Alpine |
| 104 | + if: contains(matrix.image, 'alpine') |
| 105 | + run: | |
| 106 | + apk add make g++ pcre-dev |
| 107 | +
|
99 | 108 | # needs to be called after the package installation since |
100 | 109 | # - it doesn't call "apt-get update" |
101 | 110 | - name: ccache |
102 | 111 | uses: hendrikmuhs/ccache-action@v1.2 |
103 | 112 | with: |
104 | 113 | key: ${{ github.workflow }}-${{ matrix.image }} |
105 | 114 |
|
| 115 | + # /usr/lib/ccache/bin - Alpine Linux |
| 116 | + |
106 | 117 | - name: Build cppcheck |
107 | 118 | 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" |
109 | 120 | make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror" |
110 | 121 |
|
111 | 122 | - name: Build test |
112 | 123 | 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" |
114 | 125 | make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror" testrunner |
115 | 126 |
|
116 | 127 | - name: Run test |
|
0 commit comments