1515permissions :
1616 contents : read
1717
18- env :
19- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
20-
2118jobs :
2219 build_cmake :
2320
2421 strategy :
2522 matrix :
26- image : ["ubuntu:16.04", "ubuntu:18.04", "ubuntu: 24.04", "ubuntu:24.10"]
23+ image : ["ubuntu:24.04", "ubuntu:24.10"]
2724 include :
2825 - build_gui : false
2926 - image : " ubuntu:24.04"
4340 image : ${{ matrix.image }}
4441
4542 steps :
46- # we need to stay at v3 for now because Node 20 does not support the older distros
47- # /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
48- - uses : actions/checkout@v3
49- if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
50-
5143 - uses : actions/checkout@v4
52- if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
5344
5445 - name : Install missing software on ubuntu
5546 if : contains(matrix.image, 'ubuntu')
@@ -62,36 +53,15 @@ jobs:
6253 run : |
6354 apt-get install -y qt6-base-dev qt6-charts-dev qt6-tools-dev
6455
65- # needs to be called after the package installation since
66- # - it doesn't call "apt-get update"
67- #
68- # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178.
69- # using the older version will cause a two minute hang in its post-run step.
70- - name : ccache
71- uses :
hendrikmuhs/[email protected] 72- if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
73- with :
74- key : ${{ github.workflow }}-${{ matrix.image }}
75-
7656 # needs to be called after the package installation since
7757 # - it doesn't call "apt-get update"
7858 - name : ccache
7959 uses :
hendrikmuhs/[email protected] 80- if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
8160 with :
8261 key : ${{ github.workflow }}-${{ matrix.image }}
8362
84- # tests require CMake 3.9 - ccache available
85- - name : CMake build (no tests)
86- if : matrix.image == 'ubuntu:16.04'
87- run : |
88- mkdir cmake.output
89- cd cmake.output
90- cmake -G "Unix Makefiles" -DHAVE_RULES=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
91- cmake --build . -- -j$(nproc)
92-
9363 - name : CMake build
94- if : ${{ !matrix.build_gui && matrix.image != 'ubuntu:16.04' }}
64+ if : ${{ !matrix.build_gui }}
9565 run : |
9666 mkdir cmake.output
9767 cd cmake.output
@@ -105,15 +75,14 @@ jobs:
10575 cmake --build cmake.output -- -j$(nproc)
10676
10777 - name : Run CMake test
108- if : matrix.image != 'ubuntu:16.04'
10978 run : |
11079 cmake --build cmake.output --target check -- -j$(nproc)
11180
11281 build_make :
11382
11483 strategy :
11584 matrix :
116- image : ["ubuntu:16.04", "ubuntu:18.04", "ubuntu: 24.04", "ubuntu:24.10"]
85+ image : ["ubuntu:24.04", "ubuntu:24.10"]
11786 fail-fast : false # Prefer quick result
11887
11988 runs-on : ubuntu-22.04
@@ -122,36 +91,18 @@ jobs:
12291 image : ${{ matrix.image }}
12392
12493 steps :
125- # we need to stay at v3 for now because Node 20 does not support the older distros
126- # /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
127- - uses : actions/checkout@v3
128- if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
129-
13094 - uses : actions/checkout@v4
131- if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
13295
13396 - name : Install missing software on ubuntu
13497 if : contains(matrix.image, 'ubuntu')
13598 run : |
13699 apt-get update
137100 apt-get install -y g++ make python3 libxml2-utils libpcre3-dev
138101
139- # needs to be called after the package installation since
140- # - it doesn't call "apt-get update"
141- #
142- # needs to be to fixated on 1.2.11 so it works with older images - see https://github.com/hendrikmuhs/ccache-action/issues/178.
143- # using the older version will cause a two minute hang in its post-run step.
144- - name : ccache
145- uses :
hendrikmuhs/[email protected] 146- if : matrix.image == 'ubuntu:16.04' || matrix.image == 'ubuntu:18.04'
147- with :
148- key : ${{ github.workflow }}-${{ matrix.image }}
149-
150102 # needs to be called after the package installation since
151103 # - it doesn't call "apt-get update"
152104 - name : ccache
153105 uses :
hendrikmuhs/[email protected] 154- if : matrix.image != 'ubuntu:16.04' && matrix.image != 'ubuntu:18.04'
155106 with :
156107 key : ${{ github.workflow }}-${{ matrix.image }}
157108
@@ -183,10 +134,3 @@ jobs:
183134 run : |
184135 ./cppcheck --addon=threadsafety addons/test/threadsafety
185136 ./cppcheck --addon=threadsafety --std=c++03 addons/test/threadsafety
186-
187- - name : Generate Qt help file on ubuntu 18.04
188- if : false # matrix.os == 'ubuntu-18.04'
189- run : |
190- pushd gui/help
191- qcollectiongenerator online-help.qhcp -o online-help.qhc
192-
0 commit comments