Skip to content

Windows Build/Test

Windows Build/Test #16

Workflow file for this run

name: Windows Build/Test
on: [workflow_dispatch]
jobs:
build-and-test:
runs-on: windows-2019
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Resolve Visual Studio Build Tools
uses: ilammy/msvc-dev-cmd@v1
- name: Configure and Build
run: |
mkdir build
cmake -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLIBMEM_BUILD_TESTS=ON
cd build
nmake
cd ..
- name: Run Unit Tests
shell: pwsh
run: |
Start-Process .\build\tests\target.exe
.\build\tests\unit.exe