mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-05-24 02:42:06 +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:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
build_type: [Release]
|
build_type: [Release]
|
||||||
c_compiler: [clang, cl]
|
c_compiler: [clang, clang-cl]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
c_compiler: cl
|
c_compiler: clang-cl
|
||||||
cpp_compiler: cl
|
cpp_compiler: clang-cl
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
c_compiler: clang
|
c_compiler: clang
|
||||||
cpp_compiler: clang++
|
cpp_compiler: clang++
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
c_compiler: clang
|
c_compiler: clang
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
c_compiler: cl
|
c_compiler: clang-cl
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -52,6 +52,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
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
|
- 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.
|
# 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
|
# 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