Skip to content

Commit a2b00d5

Browse files
authored
Add GitHub Action for BVTs with subset of tests (#560)
1 parent 0c47922 commit a2b00d5

2 files changed

Lines changed: 81 additions & 2 deletions

File tree

.github/workflows/bvt.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
#
4+
# http://go.microsoft.com/fwlink/?LinkId=248929
5+
6+
name: 'CTest (BVTs)'
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
paths-ignore:
12+
- '*.md'
13+
- LICENSE
14+
- '.azuredevops/**'
15+
- '.nuget/*'
16+
- build/*.cmd
17+
- build/*.json
18+
- build/*.props
19+
- build/*.ps1
20+
- build/*.targets
21+
pull_request:
22+
branches: [ "main" ]
23+
paths-ignore:
24+
- '*.md'
25+
- LICENSE
26+
- '.azuredevops/**'
27+
- '.nuget/*'
28+
- build/*.cmd
29+
- build/*.json
30+
- build/*.props
31+
- build/*.ps1
32+
- build/*.targets
33+
34+
permissions:
35+
contents: read
36+
37+
jobs:
38+
build:
39+
runs-on: ${{ matrix.os }}
40+
timeout-minutes: 20
41+
42+
strategy:
43+
fail-fast: false
44+
45+
matrix:
46+
os: [windows-2019, windows-2022]
47+
build_type: [x64-Release]
48+
arch: [amd64]
49+
50+
steps:
51+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52+
53+
- name: Clone test repository
54+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
55+
with:
56+
repository: walbourn/directxtktest
57+
path: Tests
58+
ref: main
59+
60+
- name: 'Install Ninja'
61+
run: choco install ninja
62+
63+
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
64+
with:
65+
arch: ${{ matrix.arch }}
66+
67+
- name: 'Configure CMake'
68+
working-directory: ${{ github.workspace }}
69+
run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_BVT=ON
70+
71+
- name: 'Build'
72+
working-directory: ${{ github.workspace }}
73+
run: cmake --build out\build\${{ matrix.build_type }}
74+
75+
- name: 'Run BVTs'
76+
working-directory: ${{ github.workspace }}
77+
run: ctest --preset=${{ matrix.build_type }} --output-on-failure

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Copyright (c) Microsoft Corporation.
88

99
**March 20, 2025**
1010

11-
This package contains the "DirectX Tool Kit", a collection of helper classes for writing Direct3D 11 C++ code for Universal Windows Platform (UWP) apps for Windows 11, Windows 10, Xbox One, and Win32 desktop applications for Windows 8.1 or later.
11+
This package contains the "DirectX Tool Kit", a collection of helper classes for writing Direct3D 11 C++ code for Win32 desktop applications for Windows 8.1 or later, Xbox One, and Universal Windows Platform (UWP) apps for Windows 10 and Windows 11.
1212

1313
This code is designed to build with Visual Studio 2019 (16.11), Visual Studio 2022, clang for Windows v12 or later, or MinGW 12.2. Use of the Windows 10 May 2020 Update SDK ([19041](https://walbourn.github.io/windows-10-may-2020-update-sdk/)) or later is required for Visual Studio.
1414

@@ -60,7 +60,7 @@ These components are designed to work without requiring any content from the leg
6060

6161
* ``build\``
6262

63-
+ Contains YAML files for the build pipelines along with some miscellaneous build files and scripts.
63+
+ Contains miscellaneous build files and scripts.
6464

6565
## Documentation
6666

@@ -126,6 +126,8 @@ When you submit a pull request, a CLA bot will automatically determine whether y
126126

127127
Tests for new features should also be submitted as a PR to the [Test Suite](https://github.com/walbourn/directxtktest/wiki) repository.
128128

129+
Information on coding-style can be found [here](https://github.com/microsoft/DirectXTK/wiki/Implementation).
130+
129131
## Code of Conduct
130132

131133
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

0 commit comments

Comments
 (0)