From ca52a3c7d173d45a4ac2afab88e98e2fbc104d06 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sun, 28 Jul 2024 11:24:36 -0700 Subject: [PATCH] Fix build brfeak --- .github/workflows/main.yml | 10 ++++++++++ .github/workflows/msbuild.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5198a346..2f8142ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,3 +87,13 @@ jobs: - name: 'Build' working-directory: ${{ github.workspace }} run: cmake --build out\build\${{ matrix.build_type }} + + - if: matrix.arch != 'amd64_arm64' + name: 'Configure CMake (Spectre)' + working-directory: ${{ github.workspace }} + run: cmake --preset=${{ matrix.build_type }} -DENABLE_SPECTRE_MITIGATION=ON + + - if: matrix.arch != 'amd64_arm64' + name: 'Build (Spectre)' + working-directory: ${{ github.workspace }} + run: cmake --build out\build\${{ matrix.build_type }} diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index fa498727..c1e03edd 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -45,3 +45,13 @@ jobs: name: 'Build (UWP)' working-directory: ${{ github.workspace }} run: msbuild /m /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Windows10_2022.sln + + - if: matrix.platform != 'ARM64' + name: 'Build (Spectre)' + working-directory: ${{ github.workspace }} + run: msbuild /m /p:SpectreMitigation=Spectre /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}.sln + + - if: matrix.platform != 'ARM64' + name: 'Build (Spectre Windows 10)' + working-directory: ${{ github.workspace }} + run: msbuild /m /p:SpectreMitigation=Spectre /p:Configuration=${{ matrix.build_type }} /p:Platform=${{ matrix.platform }} ./DirectXTK_Desktop_${{ matrix.vs }}_Win10.sln