99
1010jobs :
1111 build-check-demos :
12- runs-on : ubuntu-20.04
12+ runs-on : ubuntu-latest
1313 steps :
1414 - name : Clone This Repo
1515 uses : actions/checkout@v2
1616 with :
1717 submodules : recursive
1818 - name : Configure CMake build
1919 run : |
20- sudo apt-get install -y libmosquitto-dev
21- curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
22- tar -xf cmake.tar.gz
20+ sudo apt-get install -y libmosquitto-dev cmake
2321 mkdir build && cd build
24- ../cmake-3.2.0-Linux-x86_64/bin/ cmake .. \
22+ cmake .. \
2523 -G "Unix Makefiles" \
2624 -DBUILD_DEMOS=1 \
2725 -DCMAKE_BUILD_TYPE=Release \
4644 make -C build/ help | grep demo | tr -d '. ' | xargs make -C build/
4745 make -C demos/jobs/jobs_demo_mosquitto
4846 build-check-demos-cpp :
49- runs-on : ubuntu-20.04
47+ runs-on : ubuntu-latest
5048 steps :
5149 - name : Clone This Repo
5250 uses : actions/checkout@v2
6361 done
6462 - name : Configure CMake build
6563 run : |
66- sudo apt-get install -y libmosquitto-dev
67- curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
68- tar -xf cmake.tar.gz
64+ sudo apt-get install -y libmosquitto-dev cmake
6965 mkdir build && cd build
70- ../cmake-3.2.0-Linux-x86_64/bin/ cmake .. \
66+ cmake .. \
7167 -G "Unix Makefiles" \
7268 -DBUILD_DEMOS=1 \
7369 -DCMAKE_BUILD_TYPE=Release \
@@ -91,18 +87,17 @@ jobs:
9187 run : |
9288 make -C build/ help | grep demo | tr -d '. ' | xargs make -C build/
9389 build-check-install :
94- runs-on : ubuntu-20.04
90+ runs-on : ubuntu-latest
9591 steps :
9692 - name : Clone This Repo
9793 uses : actions/checkout@v2
9894 with :
9995 submodules : recursive
10096 - name : Configure CMake for installation of shared libraries at custom location
10197 run : |
102- curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
103- tar -xf cmake.tar.gz
98+ sudo apt-get install -y cmake
10499 mkdir build && cd build
105- ../cmake-3.2.0-Linux-x86_64/bin/ cmake .. \
100+ cmake .. \
106101 -DBUILD_DEMOS=0 \
107102 -DCSDK_HEADER_INSTALL_PATH="$PWD/../shared-libs-headers-install-dir" -DCSDK_LIB_INSTALL_PATH="$PWD/../shared-libs-install-dir"
108103 - name : Install shared libraries and verify custom install location
@@ -121,7 +116,7 @@ jobs:
121116 - name : Configure CMake for installation of static libraries at custom location
122117 run : |
123118 cd build
124- ../cmake-3.2.0-Linux-x86_64/bin/ cmake .. \
119+ cmake .. \
125120 -DBUILD_SHARED_LIBRARIES=OFF \
126121 -DBUILD_DEMOS=0 \
127122 -DCSDK_HEADER_INSTALL_PATH="$PWD/../static-libs-headers-install-dir" -DCSDK_LIB_INSTALL_PATH="$PWD/../static-libs-install-dir"
@@ -141,7 +136,7 @@ jobs:
141136 - name : Configure CMake build for system install location and selective installation
142137 run : |
143138 cd build
144- ../cmake-3.2.0-Linux-x86_64/bin/ cmake .. \
139+ cmake .. \
145140 -DBUILD_DEMOS=0 -DBUILD_TESTS=0 -DINSTALL_TO_SYSTEM=1 \
146141 -DINSTALL_LIBS="SHADOW;DEFENDER" -DINSTALL_PLATFORM_ABSTRACTIONS=0
147142 - name : Install selected libraries and verify default system installation path is used
@@ -165,7 +160,7 @@ jobs:
165160 # Each line of install_manifest.txt contains the location of an installed library or header
166161 done <install_manifest.txt
167162 complexity :
168- runs-on : ubuntu-20.04
163+ runs-on : ubuntu-latest
169164 steps :
170165 - uses : actions/checkout@v2
171166 - name : Setup
@@ -175,7 +170,7 @@ jobs:
175170 find platform/ \( -iname '*.c' ! -wholename '*test*' \) |\
176171 xargs complexity --scores --threshold=0 --horrid-threshold=8
177172 spell-check :
178- runs-on : ubuntu-20.04
173+ runs-on : ubuntu-latest
179174 steps :
180175 - uses : actions/checkout@v2
181176 - name : Install spell
@@ -194,7 +189,7 @@ jobs:
194189 fi
195190 done
196191 formatting :
197- runs-on : ubuntu-20.04
192+ runs-on : ubuntu-latest
198193 steps :
199194 - uses : actions/checkout@v2
200195 - name : Check formatting
@@ -231,7 +226,7 @@ jobs:
231226 path : ./doxygen.zip
232227 retention-days : 2
233228 git-secrets :
234- runs-on : ubuntu-20.04
229+ runs-on : ubuntu-latest
235230 steps :
236231 - uses : actions/checkout@v2
237232 with :
@@ -249,15 +244,15 @@ jobs:
249244 git-secrets --register-aws
250245 git-secrets --scan
251246 link-verifier :
252- runs-on : ubuntu-20.04
247+ runs-on : ubuntu-latest
253248 steps :
254249 - uses : actions/checkout@v2
255250 with :
256251 submodules : recursive
257252 - name : Setup Python for link verifier action
258253 uses : actions/setup-python@v2
259254 with :
260- python-version : ' 3.7.10 '
255+ python-version : ' 3.8 '
261256 - name : Check Links
262257 env :
263258 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -268,7 +263,7 @@ jobs:
268263 include-file-types : .c,.h,.dox
269264 allowlist-file : ./.github/links_allowlist.txt
270265 verify-manifest :
271- runs-on : ubuntu-20.04
266+ runs-on : ubuntu-latest
272267 steps :
273268 - uses : actions/checkout@v2
274269 with :
0 commit comments