mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-04-22 16:51:31 +00:00
Update cmake-multi-platform.yml
This commit is contained in:
parent
16b659f755
commit
4385b4ae8b
24
.github/workflows/cmake-multi-platform.yml
vendored
24
.github/workflows/cmake-multi-platform.yml
vendored
@ -24,11 +24,11 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
build_type: [Release]
|
||||
c_compiler: [clang, cl]
|
||||
c_compiler: [clang, clang-cl]
|
||||
include:
|
||||
- os: windows-latest
|
||||
c_compiler: cl
|
||||
cpp_compiler: cl
|
||||
c_compiler: clang-cl
|
||||
cpp_compiler: clang-cl
|
||||
- os: ubuntu-latest
|
||||
c_compiler: clang
|
||||
cpp_compiler: clang++
|
||||
@ -36,7 +36,7 @@ jobs:
|
||||
- os: windows-latest
|
||||
c_compiler: clang
|
||||
- os: ubuntu-latest
|
||||
c_compiler: cl
|
||||
c_compiler: clang-cl
|
||||
|
||||
|
||||
steps:
|
||||
@ -52,6 +52,22 @@ jobs:
|
||||
run: |
|
||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Set up Clang-Cl on Windows
|
||||
if: runner.os == 'Windows'
|
||||
shell: pwsh
|
||||
run: |
|
||||
echo "Setting up Clang-Cl..."
|
||||
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
echo "Using Clang Version:"
|
||||
clang-cl --version
|
||||
|
||||
- name: Install Ninja on Windows
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
choco install ninja --no-progress
|
||||
shell: pwsh
|
||||
|
||||
- name: Configure CMake
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
|
Loading…
x
Reference in New Issue
Block a user