From 8296ec2b5c78283a5f3e4e75624505eacb3dc319 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 29 Sep 2020 20:05:33 +0100 Subject: [PATCH] Add VS2019 configuration to Github CI --- .github/workflows/main.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 63c0d4c3..1acff0b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,44 @@ name: CI on: push: - branches: [ master ] + branches: [ feature/github-actions-for-windows-compilers ] pull_request: branches: [ master ] jobs: + +Windows: + name: build-windows-vs2019 + runs-on: [windows] + + steps: + - name: Checkout + uses: actions/checkout@v2 + 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: Build and run + run: | + cd ${{ github.workspace }} + mkdir build + cd build + cmake .. -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }} + /../vcpkg/scripts/buildsystems/vcpkg.cmake + cd build + MSBuild.exe etl.sln /property:Configuration=Debug + + - name: Run tests + run: ./test/etl_tests + build-gcc-linux: runs-on: ${{ matrix.os }} strategy: