4343 # we need to stay at v3 for now because Node 20 does not support the older distros
4444 # /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
4545 - uses : actions/checkout@v3
46+ if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
47+
48+ - uses : actions/checkout@v4
49+ if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
4650
4751 - name : Install missing software on ubuntu
4852 if : contains(matrix.image, 'ubuntu')
@@ -57,11 +61,20 @@ jobs:
5761
5862 # needs to be called after the package installation since
5963 # - it doesn't call "apt-get update"
60- # - it doesn't support centos
6164 #
62- # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178
65+ # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178.
66+ # using the older version will cause a two minute hang in its post-run step.
6367 - name : ccache
6468 uses : hendrikmuhs/ccache-action@v1.2.11
69+ if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
70+ with :
71+ key : ${{ github.workflow }}-${{ matrix.image }}
72+
73+ # needs to be called after the package installation since
74+ # - it doesn't call "apt-get update"
75+ - name : ccache
76+ uses : hendrikmuhs/ccache-action@v1.2
77+ if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
6578 with :
6679 key : ${{ github.workflow }}-${{ matrix.image }}
6780
@@ -109,6 +122,10 @@ jobs:
109122 # we need to stay at v3 for now because Node 20 does not support the older distros
110123 # /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
111124 - uses : actions/checkout@v3
125+ if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
126+
127+ - uses : actions/checkout@v4
128+ if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
112129
113130 - name : Install missing software on ubuntu
114131 if : contains(matrix.image, 'ubuntu')
@@ -118,24 +135,31 @@ jobs:
118135
119136 # needs to be called after the package installation since
120137 # - it doesn't call "apt-get update"
121- # - it doesn't support centos
122138 #
123- # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178
139+ # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178.
140+ # using the older version will cause a two minute hang in its post-run step.
124141 - name : ccache
125142 uses : hendrikmuhs/ccache-action@v1.2.11
143+ if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
144+ with :
145+ key : ${{ github.workflow }}-${{ matrix.image }}
146+
147+ # needs to be called after the package installation since
148+ # - it doesn't call "apt-get update"
149+ - name : ccache
150+ uses : hendrikmuhs/ccache-action@v1.2
151+ if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
126152 with :
127153 key : ${{ github.workflow }}-${{ matrix.image }}
128154
129155 - name : Build cppcheck
130156 run : |
131- # "/usr/lib64" for centos / "/usr/lib" for ubuntu
132- export PATH="/usr/lib64/ccache:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
157+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
133158 make -j$(nproc) HAVE_RULES=yes CXXFLAGS="-w"
134159
135160 - name : Build test
136161 run : |
137- # "/usr/lib64" for centos / "/usr/lib" for ubuntu
138- export PATH="/usr/lib64/ccache:/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
162+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
139163 make -j$(nproc) testrunner HAVE_RULES=yes CXXFLAGS="-w"
140164
141165 - name : Run test
0 commit comments