From ab7cc9a7aa8f8ef03dc89db32bdf95a42825e352 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sun, 25 May 2025 19:33:10 -0700 Subject: [PATCH 1/4] Add GitHub Action for BVTs with subset of tests --- .github/workflows/bvt.yml | 77 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/bvt.yml diff --git a/.github/workflows/bvt.yml b/.github/workflows/bvt.yml new file mode 100644 index 000000000..1ac834686 --- /dev/null +++ b/.github/workflows/bvt.yml @@ -0,0 +1,77 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# +# http://go.microsoft.com/fwlink/?LinkId=248929 + +name: 'CTest (BVTs)' + +on: + push: + branches: [ "main" ] + paths-ignore: + - '*.md' + - LICENSE + - '.azuredevops/**' + - '.nuget/*' + - build/*.cmd + - build/*.json + - build/*.props + - build/*.ps1 + - build/*.targets + pull_request: + branches: [ "main" ] + paths-ignore: + - '*.md' + - LICENSE + - '.azuredevops/**' + - '.nuget/*' + - build/*.cmd + - build/*.json + - build/*.props + - build/*.ps1 + - build/*.targets + +permissions: + contents: read + +jobs: + build: + runs-on: ${{ matrix.os }} + timeout-minutes: 20 + + strategy: + fail-fast: false + + matrix: + os: [windows-2019, windows-2022] + build_type: [x64-Release] + arch: [amd64] + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Clone test repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + repository: walbourn/directxtktest + path: Tests + ref: main + + - name: 'Install Ninja' + run: choco install ninja + + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 + with: + arch: ${{ matrix.arch }} + + - name: 'Configure CMake' + working-directory: ${{ github.workspace }} + run: cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_BVT=ON + + - name: 'Build' + working-directory: ${{ github.workspace }} + run: cmake --build out\build\${{ matrix.build_type }} + + - name: 'Run BVTs' + working-directory: ${{ github.workspace }} + run: ctest --preset=${{ matrix.build_type }} --output-on-failure From 7a2a9b348b23acc5ee948c24aa560152dba8dfa2 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 26 May 2025 11:58:58 -0700 Subject: [PATCH 2/4] Update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 87f8f5372..5b38114dd 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ These components are designed to work without requiring any content from the leg * ``build\`` - + Contains YAML files for the build pipelines along with some miscellaneous build files and scripts. + + Contains miscellaneous build files and scripts. ## Documentation From 8915a37829aef86c81cab32176b381e662b89f74 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 26 May 2025 19:26:30 -0700 Subject: [PATCH 3/4] Update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b38114dd..98d545157 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Copyright (c) Microsoft Corporation. **March 20, 2025** -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. +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. 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. From 429bf5356089b22fe389744df14a8e654bef4e81 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 27 May 2025 00:23:14 -0700 Subject: [PATCH 4/4] Update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 98d545157..4a70dbe23 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,8 @@ When you submit a pull request, a CLA bot will automatically determine whether y Tests for new features should also be submitted as a PR to the [Test Suite](https://github.com/walbourn/directxtktest/wiki) repository. +Information on coding-style can be found [here](https://github.com/microsoft/DirectXTK/wiki/Implementation). + ## Code of Conduct 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.