Skip to content

revert windows compile options #40

revert windows compile options

revert windows compile options #40

Workflow file for this run

name: cmake-test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
job:
name: ${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ matrix.variant }}
runs-on: ${{ matrix.os }}-${{ matrix.os_version }}
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu, windows]
os_version: [latest]
compiler: [cl, clang++, g++]
variant: [Debug, Release]
include:
- os: macos
compiler: clang++
triplet: arm64-osx
- os: ubuntu
compiler: clang++
triplet: x64-linux
- os: ubuntu
compiler: g++
triplet: x64-linux
- os: windows
compiler: cl
triplet: x64-windows
exclude:
- os: macos
compiler: cl
- os: macos
compiler: g++
- os: ubuntu
compiler: cl
- os: windows
compiler: clang++
- os: windows
compiler: g++
env:
CXX: ${{ matrix.compiler }}
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
VCPKG_DISABLE_METRICS: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ilammy/msvc-dev-cmd@v1
- uses: friendlyanon/setup-vcpkg@v1
with:
committish: 2025.12.12
# vcpkg always builds release, so share cache between debug and release
cache-key: vcpkg-${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ hashFiles('vcpkg.json', '.github/vcpkg_overlays/**') }}
- name: cmake
run: |
cmake --preset ${{ matrix.variant }}
cmake --build --parallel --preset ${{ matrix.variant }}
ctest --output-on-failure --preset ${{ matrix.variant }}