11name : qtbase Network Tests
2+
3+ # START OF COMMON SECTION
24on :
35 push :
46 branches : [ 'master', 'main', 'release/**', 'qt5network5' ]
57 pull_request :
68 branches : [ '*' ]
9+ workflow_run :
10+ workflows : ["Build Packages"]
11+ types :
12+ - completed
13+ branches : [ '**' ]
714
815concurrency :
916 group : ${{ github.workflow }}-${{ github.ref }}
1017 cancel-in-progress : true
18+ # END OF COMMON SECTION
1119
1220jobs :
1321 build_wolfprovider :
@@ -19,44 +27,44 @@ jobs:
1927 matrix :
2028 wolfssl_ref : [ 'master', 'v5.8.0-stable' ]
2129 openssl_ref : [ 'openssl-3.5.0' ]
22-
2330 test_qtbase_network :
31+ if : ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
2432 runs-on : ubuntu-22.04
2533 needs : build_wolfprovider
2634 timeout-minutes : 30
2735 strategy :
2836 matrix :
29- wolfssl_ref : [ 'master', 'v5.8.0-stable' ]
30- openssl_ref : [ 'openssl-3.5.0' ]
37+ # Match the matrix from build.yml
38+ wolfssl_ref : [ 'v5.8.2-stable' ]
39+ openssl_ref : [ 'openssl-3.5.2' ] # Note: build.yml uses 3.5.2, not 3.5.0
40+ replace_default : [ true ]
41+ # qt5network5-specific matrix
3142 qt_ref : [ 'dev', 'v5.15.8-lts-lgpl' ]
3243 force_fail : [ 'WOLFPROV_FORCE_FAIL=1', '' ]
3344 exclude :
3445 - qt_ref : ' dev'
3546 force_fail : ' WOLFPROV_FORCE_FAIL=1'
3647 steps :
48+ - name : Set up environment
49+ run : |
50+ apt-get update
51+ apt-get install -y build-essential pkg-config \
52+ python3 perl libpcre2-dev zlib1g-dev cmake ninja-build
53+
3754 - name : Checkout wolfProvider
3855 uses : actions/checkout@v4
3956 with :
4057 fetch-depth : 1
4158
42- - name : Retrieving wolfSSL/wolfProvider from cache
43- uses : actions/cache/restore@v4
44- id : wolfprov-cache
59+ - name : Download wolfProvider packages
60+ uses : actions/download-artifact@v4
4561 with :
46- path : |
47- wolfssl-install
48- wolfprov-install
49- openssl-install/lib64
50- openssl-install/include
51- openssl-install/bin
52- key : wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
53- fail-on-cache-miss : true
62+ name : wolfprov-debian-packages-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}${{ matrix.replace_default && '-replace-default' || '' }}
63+ path : /tmp/wolfprov-packages
5464
55- - name : Install Qt dependencies
65+ - name : Install wolfProvider packages
5666 run : |
57- sudo apt-get update
58- sudo apt-get install -y build-essential pkg-config \
59- python3 perl libpcre2-dev zlib1g-dev cmake ninja-build
67+ $GITHUB_WORKSPACE/.github/scripts/install-packages.sh
6068
6169 - name : Checkout OSP
6270 uses : actions/checkout@v4
0 commit comments