GHActions:Windows: Add CMake clang-cl build

This commit is contained in:
TellowKrinkle 2023-01-25 22:15:28 -06:00 committed by refractionpcsx2
parent e0a1613ad9
commit b90405a7d2
2 changed files with 17 additions and 3 deletions

View File

@ -38,8 +38,8 @@ jobs:
configuration: Release AVX2 configuration: Release AVX2
secrets: inherit secrets: inherit
build_qt_sse4_cmake: build_qt_cmake:
name: "CMake SSE4" name: "CMake"
uses: ./.github/workflows/windows_build_qt.yml uses: ./.github/workflows/windows_build_qt.yml
with: with:
jobName: Qt jobName: Qt
@ -65,3 +65,13 @@ jobs:
jobName: Qt Clang jobName: Qt Clang
configuration: Release Clang AVX2 configuration: Release Clang AVX2
secrets: inherit secrets: inherit
build_qt_cmake_clang:
name: "CMake"
uses: ./.github/workflows/windows_build_qt.yml
with:
jobName: Qt Clang
configuration: CMake
buildSystem: cmake
cmakeFlags: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DPCSX2_EXE_NAME=pcsx2-qt-clang
secrets: inherit

View File

@ -25,6 +25,10 @@ on:
required: false required: false
type: string type: string
default: msbuild default: msbuild
cmakeFlags:
required: false
type: string
default: ""
qt_binary_url: qt_binary_url:
required: false required: false
type: string type: string
@ -92,7 +96,7 @@ jobs:
shell: cmd shell: cmd
run: | run: |
call "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" call "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cmake . -B build "-DCMAKE_PREFIX_PATH=%cd%\${{ inputs.qt_dir }}" -DQT_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DDISABLE_ADVANCE_SIMD=ON -G Ninja cmake . -B build ${{ inputs.cmakeFlags }} "-DCMAKE_PREFIX_PATH=%cd%\${{ inputs.qt_dir }}" -DQT_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DDISABLE_ADVANCE_SIMD=ON -G Ninja
- name: Build PCSX2 - name: Build PCSX2
shell: cmd shell: cmd