[Fix] MSVC C4201 warning #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2023 Sapphire's Suite. All Rights Reserved. | |
name: Windows | |
# Trigger the action. | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- dev | |
- dev_* | |
- '!dev_osx' | |
- '!dev_macos' | |
- '!dev_unix' | |
# Settings common to all jobs. | |
defaults: | |
run: | |
shell: bash | |
# Variables common to all jobs. | |
env: | |
CMAKE_OPTIONS: '-DSA_CI=1' | |
# Job matrix | |
jobs: | |
MSVC_2019: | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
config: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Generate Project | |
run: cmake --preset=VS_2019 ${{ env.CMAKE_OPTIONS }} | |
- name: Build Project | |
run: cmake --build --preset="VS_2019 ${{ matrix.config }}" --verbose | |
- name: Run CTests | |
run: ctest --preset="VS_2019 ${{ matrix.config }}" -V | |
MSVC_2022: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
config: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Generate Project | |
run: cmake --preset=VS_2022 ${{ env.CMAKE_OPTIONS }} | |
- name: Build Project | |
run: cmake --build --preset="VS_2022 ${{ matrix.config }}" --verbose | |
- name: Run CTests | |
run: ctest --preset="VS_2022 ${{ matrix.config }}" -V | |
ClangCL: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Generate Project | |
run: cmake --preset=VS_ClangCL ${{ env.CMAKE_OPTIONS }} | |
- name: Build Project | |
run: cmake --build --preset="VS_ClangCL ${{ matrix.config }}" --verbose | |
- name: Run CTests | |
run: ctest --preset="VS_ClangCL ${{ matrix.config }}" -V | |
Clang: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: seanmiddleditch/gha-setup-ninja@master # Install Ninja. | |
- name: Generate Project | |
run: cmake --preset="Clang" ${{ env.CMAKE_OPTIONS }} | |
- name: Build Project | |
run: cmake --build --preset="Clang ${{ matrix.config }}" --verbose | |
- name: Run CTests | |
run: ctest --preset="Clang ${{ matrix.config }}" -V |