Browse code

GHA: general update March 2024

- Update to Node 20 versions of actions to avoid warnings
- Update to current vcpkg
- Update mbedTLS and LibreSSL to latest releases

Change-Id: I1ad6a0b1323ce0872f4a3299c5a9f18a982e0126
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Message-Id: <20240319154456.2967716-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28422.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Frank Lichtenheld authored on 2024/03/20 00:44:56
Showing 2 changed files
... ...
@@ -13,7 +13,7 @@ jobs:
13 13
       - name: Install dependencies
14 14
         run: sudo apt update && sudo apt install -y uncrustify
15 15
       - name: Checkout OpenVPN
16
-        uses: actions/checkout@v3
16
+        uses: actions/checkout@v4
17 17
         with:
18 18
           path: openvpn
19 19
       - name: Show uncrustify version
... ...
@@ -27,7 +27,7 @@ jobs:
27 27
       - name: Show changes on standard output
28 28
         run: git diff
29 29
         working-directory: openvpn
30
-      - uses: actions/upload-artifact@v3
30
+      - uses: actions/upload-artifact@v4
31 31
         with:
32 32
           name: uncrustify-changes.patch
33 33
           path: 'openvpn/uncrustify-changes.patch'
... ...
@@ -49,12 +49,12 @@ jobs:
49 49
       - name: Install dependencies
50 50
         run: sudo apt update && sudo apt install -y mingw-w64 unzip cmake ninja-build build-essential wget python3-docutils man2html-base
51 51
       - name: Checkout OpenVPN
52
-        uses: actions/checkout@v3
52
+        uses: actions/checkout@v4
53 53
 
54 54
       - name: Restore from cache and install vcpkg
55 55
         uses: lukka/run-vcpkg@v11
56 56
         with:
57
-          vcpkgGitCommitId: '1ba9a2591f15af5900f2ce2b3e2bf31771e3ac48'
57
+          vcpkgGitCommitId: 8d3649ba34aab36914ddd897958599aa0a91b08e
58 58
           vcpkgJsonGlob: '**/mingw/vcpkg.json'
59 59
 
60 60
       - name: Run CMake with vcpkg.json manifest
... ...
@@ -64,7 +64,7 @@ jobs:
64 64
           buildPreset: mingw-${{ matrix.arch }}
65 65
           buildPresetAdditionalArgs: "['--config Debug']"
66 66
 
67
-      - uses: actions/upload-artifact@v3
67
+      - uses: actions/upload-artifact@v4
68 68
         with:
69 69
           name: openvpn-mingw-${{ matrix.arch }}
70 70
           path: |
... ...
@@ -72,7 +72,7 @@ jobs:
72 72
             ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/Debug/*.dll
73 73
             !${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/Debug/test_*.exe
74 74
 
75
-      - uses: actions/upload-artifact@v3
75
+      - uses: actions/upload-artifact@v4
76 76
         with:
77 77
           name: openvpn-mingw-${{ matrix.arch }}-tests
78 78
           path: |
... ...
@@ -91,9 +91,9 @@ jobs:
91 91
     name: "mingw unittest ${{ matrix.test }} - ${{ matrix.arch }} - OSSL"
92 92
     steps:
93 93
       - name: Checkout OpenVPN
94
-        uses: actions/checkout@v3
94
+        uses: actions/checkout@v4
95 95
       - name: Retrieve mingw unittest
96
-        uses: actions/download-artifact@v3
96
+        uses: actions/download-artifact@v4
97 97
         with:
98 98
           name: openvpn-mingw-${{ matrix.arch }}-tests
99 99
           path: unittests
... ...
@@ -159,7 +159,7 @@ jobs:
159 159
       - name: Install dependencies
160 160
         run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev libcap-ng-dev libnl-genl-3-dev linux-libc-dev man2html libcmocka-dev python3-docutils libtool automake autoconf ${SSLPKG} ${PKCS11PKG}
161 161
       - name: Checkout OpenVPN
162
-        uses: actions/checkout@v3
162
+        uses: actions/checkout@v4
163 163
       - name: autoconf
164 164
         run: autoreconf -fvi
165 165
       - name: configure
... ...
@@ -186,7 +186,7 @@ jobs:
186 186
       - name: Install dependencies
187 187
         run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev libcap-ng-dev libnl-genl-3-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils libtool automake autoconf libmbedtls-dev
188 188
       - name: Checkout OpenVPN
189
-        uses: actions/checkout@v3
189
+        uses: actions/checkout@v4
190 190
       - name: autoconf
191 191
         run: autoreconf -fvi
192 192
       - name: configure
... ...
@@ -235,7 +235,7 @@ jobs:
235 235
       - name: Install dependencies
236 236
         run: brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf libressl
237 237
       - name: Checkout OpenVPN
238
-        uses: actions/checkout@v3
238
+        uses: actions/checkout@v4
239 239
       - name: autoconf
240 240
         run: autoreconf -fvi
241 241
       - name: configure
... ...
@@ -257,7 +257,7 @@ jobs:
257 257
 
258 258
       runs-on: windows-latest
259 259
       steps:
260
-      - uses: actions/checkout@v3
260
+      - uses: actions/checkout@v4
261 261
       - uses: lukka/get-cmake@latest
262 262
 
263 263
       - name: Install rst2html
... ...
@@ -266,7 +266,7 @@ jobs:
266 266
       - name: Restore artifacts, or setup vcpkg (do not install any package)
267 267
         uses: lukka/run-vcpkg@v11
268 268
         with:
269
-          vcpkgGitCommitId: '1ba9a2591f15af5900f2ce2b3e2bf31771e3ac48'
269
+          vcpkgGitCommitId: 8d3649ba34aab36914ddd897958599aa0a91b08e
270 270
           vcpkgJsonGlob: '**/windows/vcpkg.json'
271 271
 
272 272
       - name: Run CMake with vcpkg.json manifest (NO TESTS)
... ...
@@ -285,7 +285,7 @@ jobs:
285 285
           testPreset: win-${{ matrix.arch }}-release
286 286
           testPresetAdditionalArgs: "['--output-on-failure']"
287 287
 
288
-      - uses: actions/upload-artifact@v3
288
+      - uses: actions/upload-artifact@v4
289 289
         with:
290 290
           name: openvpn-msvc-${{ matrix.arch }}
291 291
           path: |
... ...
@@ -325,11 +325,11 @@ jobs:
325 325
       - name: Install dependencies
326 326
         run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils libtool automake autoconf pkg-config libcap-ng-dev libnl-genl-3-dev
327 327
       - name: "libressl: checkout"
328
-        uses: actions/checkout@v3
328
+        uses: actions/checkout@v4
329 329
         with:
330 330
           path: libressl
331 331
           repository: libressl/portable
332
-          ref: v3.8.2
332
+          ref: v3.8.3
333 333
       - name: "libressl: autogen.sh"
334 334
         run: ./autogen.sh
335 335
         working-directory: libressl
... ...
@@ -345,7 +345,7 @@ jobs:
345 345
       - name: "ldconfig"
346 346
         run: sudo ldconfig
347 347
       - name: Checkout OpenVPN
348
-        uses: actions/checkout@v3
348
+        uses: actions/checkout@v4
349 349
       - name: autoconf
350 350
         run: autoreconf -fvi
351 351
       - name: configure
... ...
@@ -384,11 +384,11 @@ jobs:
384 384
       - name: Install dependencies
385 385
         run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils python3-jinja2 python3-jsonschema libtool automake autoconf pkg-config libcap-ng-dev libnl-genl-3-dev
386 386
       - name: "mbedtls: checkout"
387
-        uses: actions/checkout@v3
387
+        uses: actions/checkout@v4
388 388
         with:
389 389
           path: mbedtls
390 390
           repository: Mbed-TLS/mbedtls
391
-          ref: v3.5.0
391
+          ref: v3.5.2
392 392
       - name: "mbedtls: make no_test"
393 393
         run: make -j3 no_test SHARED=1
394 394
         working-directory: mbedtls
... ...
@@ -396,7 +396,7 @@ jobs:
396 396
         run: sudo make install DESTDIR=/usr
397 397
         working-directory: mbedtls
398 398
       - name: Checkout OpenVPN
399
-        uses: actions/checkout@v3
399
+        uses: actions/checkout@v4
400 400
       - name: autoconf
401 401
         run: autoreconf -fvi
402 402
       - name: configure
... ...
@@ -10,7 +10,7 @@ jobs:
10 10
     steps:
11 11
       - name: Check submission cache
12 12
         id: check_submit
13
-        uses: actions/cache/restore@v3
13
+        uses: actions/cache/restore@v4
14 14
         with:
15 15
           path: |
16 16
             cov-int
... ...
@@ -22,7 +22,7 @@ jobs:
22 22
 
23 23
       - name: Checkout OpenVPN
24 24
         if: steps.check_submit.outputs.cache-hit != 'true'
25
-        uses: actions/checkout@v3
25
+        uses: actions/checkout@v4
26 26
 
27 27
       - name: Download Coverity Build Tool
28 28
         if: steps.check_submit.outputs.cache-hit != 'true'
... ...
@@ -62,7 +62,7 @@ jobs:
62 62
 
63 63
       - name: Cache submission
64 64
         if: steps.check_submit.outputs.cache-hit != 'true'
65
-        uses: actions/cache/save@v3
65
+        uses: actions/cache/save@v4
66 66
         with:
67 67
           path: |
68 68
             cov-int