Skip to content

Update windows.yaml

Update windows.yaml #5

Workflow file for this run

name: Windows
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: bd136dad4da8059ba93f71412f52b2ec7c09d377
- name: Build
run: |
mkdir build && cd build
cmake .. --preset windows -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=True
cmake --build . --config ${{env.BUILD_TYPE}}
- name: Artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: build
tests:
runs-on: windows-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Artifact
uses: actions/download-artifact@v4
with:
name: build-artifact
path: build
- name: Tests
run: |
cd build
ctest -C Release