Skip to content

Action fail. A'ight this is getting old real fast. #10

Action fail. A'ight this is getting old real fast.

Action fail. A'ight this is getting old real fast. #10

Workflow file for this run

name: build-windows
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Release
# TODO: Use matrix instead
# TODO: Add clang-cl build
jobs:
build-cl:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- uses: Bacondish2023/setup-googletest@v1
with:
tag: v1.14.0
- name: Configure CMake
run: |
cmake \
-B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCMAKE_C_COMPILER=cl \
-DCMAKE_CXX_COMPILER=cl \
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded \
-GNinja
- name: Build with GCC
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}