Skip to content

Commit 4805f47

Browse files
committed
Remove VS 19 jobs, and don't run debug tests
1 parent 787c591 commit 4805f47

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/windows.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
version:
28-
- generator: Visual Studio 16 2019
29-
runs-on: windows-2019
3028
- generator: Visual Studio 17 2022
3129
runs-on: windows-2022
3230
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
3938
runs-on: ${{ matrix.version.runs-on }}
4039
env:
4140
build_dir: .build
@@ -71,24 +70,28 @@ jobs:
7170
run: |
7271
conan profile new default --detect
7372
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
7576
- name: build dependencies
7677
uses: ./.github/actions/dependencies
7778
env:
7879
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
7980
CONAN_LOGIN_USERNAME_RIPPLE: ${{ secrets.CONAN_USERNAME }}
8081
CONAN_PASSWORD_RIPPLE: ${{ secrets.CONAN_TOKEN }}
8182
with:
82-
configuration: ${{ matrix.configuration }}
83+
configuration: ${{ matrix.configuration.type }}
8384
- name: build
8485
uses: ./.github/actions/build
8586
with:
8687
generator: '${{ matrix.version.generator }}'
87-
configuration: ${{ matrix.configuration }}
88+
configuration: ${{ matrix.configuration.type }}
8889
# Hard code for now. Move to the matrix if varied options are needed
8990
cmake-args: '-Dassert=ON -Dreporting=OFF -Dunity=ON'
9091
cmake-target: install
9192
- name: test
9293
shell: bash
94+
if: ${{ matrix.configuration.tests }}
9395
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

Comments
 (0)