6868 fail-fast : false
6969 matrix :
7070 arch : [x86, x64]
71+ build : [Release, Debug]
7172
72- name : " gcc-mingw - ${{ matrix.arch }} - OSSL"
73+ name : " gcc-mingw - ${{ matrix.arch }} - ${{matrix.build }} - OSSL"
7374 runs-on : ubuntu-24.04
7475 env :
7576 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
@@ -91,22 +92,22 @@ jobs:
9192 with :
9293 configurePreset : mingw-${{ matrix.arch }}
9394 buildPreset : mingw-${{ matrix.arch }}
94- buildPresetAdditionalArgs : " ['--config Debug ']"
95+ buildPresetAdditionalArgs : " ['--config ${{ matrix.build }} ']"
9596
9697 - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
9798 with :
98- name : openvpn-mingw-${{ matrix.arch }}
99+ name : openvpn-mingw-${{ matrix.arch }}-${{ matrix.build }}
99100 path : |
100- ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/**/Debug /*.exe
101- ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/**/Debug /*.dll
102- !${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/Debug /test_*.exe
101+ ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/**/${{ matrix.build }} /*.exe
102+ ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/**/${{ matrix.build }} /*.dll
103+ !${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/${{ matrix.build }} /test_*.exe
103104
104105 - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
105106 with :
106- name : openvpn-mingw-${{ matrix.arch }}-tests
107+ name : openvpn-mingw-${{ matrix.arch }}-${{ matrix.build }}- tests
107108 path : |
108- ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/Debug /test_*.exe
109- ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/Debug /*.dll
109+ ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/${{ matrix.build }} /test_*.exe
110+ ${{ github.workspace }}/out/build/mingw/${{ matrix.arch }}/${{ matrix.build }} /*.dll
110111
111112 mingw-unittest :
112113 needs : [ mingw ]
@@ -115,16 +116,17 @@ jobs:
115116 matrix :
116117 arch : [x86, x64]
117118 test : [argv, auth_token, buffer, cryptoapi, crypto, misc, options_parse, ncp, packet_id, pkt, provider, ssl, tls_crypt, user_pass]
119+ build : [Release, Debug]
118120
119121 runs-on : windows-2025
120- name : " mingw unittest ${{ matrix.test }} - ${{ matrix.arch }} - OSSL"
122+ name : " mingw unittest ${{ matrix.test }} - ${{ matrix.arch }} - ${{ matrix.build }} - OSSL"
121123 steps :
122124 - name : Checkout OpenVPN
123125 uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
124126 - name : Retrieve mingw unittest
125127 uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
126128 with :
127- name : openvpn-mingw-${{ matrix.arch }}-tests
129+ name : openvpn-mingw-${{ matrix.arch }}-${{ matrix.build }}- tests
128130 path : unittests
129131 - name : Run ${{ matrix.test }} unit test
130132 run : ./unittests/test_${{ matrix.test }}.exe
0 commit comments