mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-29 05:48:44 +08:00
Add VS2019 configuration to Github CI
This commit is contained in:
parent
5550500e7b
commit
8296ec2b5c
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user