Github actions for MSVC

This commit is contained in:
John Wellbelove 2020-08-11 10:02:06 +01:00
parent 44e2730baa
commit b971037ce5

View File

@ -8,7 +8,7 @@ on:
jobs:
build-visual-studio:
runs-on: windows
runs-on: windows-latest
steps:
- name: Checkout
@ -16,25 +16,4 @@ jobs:
with:
submodules: recursive
- name: Installing vcpkg
run: |
cd ..
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
git checkout --force 2020.01
.\bootstrap-vcpkg.bat
.\vcpkg.exe install cppzmq:x64-windows
- name: Running cmake
run: |
cd ${{ github.workspace }}
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}
/../vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build and run
run: |
cmake -D BUILD_TESTS=ON ./
cd build
MSBuild.exe etl.sln