@@ -25,17 +25,16 @@ jobs:
25
25
fail-fast : false
26
26
matrix :
27
27
version :
28
- - generator : Visual Studio 16 2019
29
- runs-on : windows-2019
30
28
- generator : Visual Studio 17 2022
31
29
runs-on : windows-2022
32
30
configuration :
33
- - Release
34
- # Github hosted runners tend to hang when running Debug unit tests.
35
- # Instead of trying to work around it, disable the Debug job until
36
- # something beefier (i.e. a heavy self-hosted runner) becomes
37
- # available.
38
- - Debug
31
+ - type : Release
32
+ tests : true
33
+ - type : Debug
34
+ // Skip running unit tests on debug builds, because they
35
+ // take an unreasonable amount of time
36
+ tests : false
37
+ runtime : d
39
38
runs-on : ${{ matrix.version.runs-on }}
40
39
env :
41
40
build_dir : .build
@@ -71,24 +70,28 @@ jobs:
71
70
run : |
72
71
conan profile new default --detect
73
72
conan profile update settings.compiler.cppstd=20 default
74
- conan profile update settings.compiler.runtime=MT${{ matrix.configuration == 'Debug' && 'd' || '' }} default
73
+ conan profile update \
74
+ settings.compiler.runtime=MT${{ matrix.configuration.runtime }} \
75
+ default
75
76
- name : build dependencies
76
77
uses : ./.github/actions/dependencies
77
78
env :
78
79
CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
79
80
CONAN_LOGIN_USERNAME_RIPPLE : ${{ secrets.CONAN_USERNAME }}
80
81
CONAN_PASSWORD_RIPPLE : ${{ secrets.CONAN_TOKEN }}
81
82
with :
82
- configuration : ${{ matrix.configuration }}
83
+ configuration : ${{ matrix.configuration.type }}
83
84
- name : build
84
85
uses : ./.github/actions/build
85
86
with :
86
87
generator : ' ${{ matrix.version.generator }}'
87
- configuration : ${{ matrix.configuration }}
88
+ configuration : ${{ matrix.configuration.type }}
88
89
# Hard code for now. Move to the matrix if varied options are needed
89
90
cmake-args : ' -Dassert=ON -Dreporting=OFF -Dunity=ON'
90
91
cmake-target : install
91
92
- name : test
92
93
shell : bash
94
+ if : ${{ matrix.configuration.tests }}
93
95
run : |
94
- ${build_dir}/${{ matrix.configuration }}/rippled --unittest --unittest-jobs $(nproc)
96
+ ${build_dir}/${{ matrix.configuration.type }}/rippled --unittest \
97
+ --unittest-jobs $(nproc)
0 commit comments