Skip to content

cmake.yel

cmake.yel #10

# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.com
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [windows-latest]
build_type: [Release]
c_compiler: [clang]
include:
- os: windows-latest
c_compiler: clang
cpp_compiler: clang
exclude:
- os: windows-latest
c_compiler: clang
steps:
- uses: actions/checkout@master
- name: Install Visual Studio 2022
uses: microsoft/setup-msbuild@v2
- name: skynet
run: git submodule update --init
- name: cmake
run: |
mkdir build
cd build
cmake --no-warn-unused-cli -S ../ -B ./ -G "Visual Studio 17 2022" -A x64 -T ClangCL -DCMAKE_BUILD_TYPE=Release
- name: build
run: |
%MSBUILD_PATH% skynet_fly.sln /Build Release