Add VS2019 configuration to Github CI

This commit is contained in:
John Wellbelove 2020-10-02 17:41:01 +01:00
parent 2df9504d74
commit caabbba357
3 changed files with 152 additions and 16 deletions

91
.github/workflows/clang.yml vendored Normal file
View File

@ -0,0 +1,91 @@
name: CI
on:
push:
branches: [ feature/github-actions-for-windows-compilers ]
pull_request:
branches: [ master ]
jobs:
build-clang-9-linux:
name: Clang-9 Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export CC=clang-9
export CXX=clang++-9
cmake -D BUILD_TESTS=ON ./
clang --version
make
- name: Run tests
run: ./test/etl_tests
build-clang-9-linux-no-stl:
name: Clang-9 Linux No STL
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export CC=clang-9
export CXX=clang++-9
cmake -D BUILD_TESTS=ON -DNO_STL=ON ./
clang --version
make
- name: Run tests
run: ./test/etl_tests
build-clang-10-osx:
name: Clang-10 OSX
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-10.15]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export CC=clang
export CXX=clang++
cmake -D BUILD_TESTS=ON ./
clang --version
make
- name: Run tests
run: ./test/etl_tests
build-clang-10-osx-no-stl:
name: Clang-10 OSX No STL
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-10.15]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export CC=clang
export CXX=clang++
cmake -D BUILD_TESTS=ON -DNO_STL=ON ./
clang --version
make
- name: Run tests
run: ./test/etl_tests

45
.github/workflows/gcc.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: CI
on:
push:
branches: [ feature/github-actions-for-windows-compilers ]
pull_request:
branches: [ master ]
jobs:
build-gcc-linux:
name: GCC Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cmake -DBUILD_TESTS=ON ./
gcc --version
make
- name: Run tests
run: ./test/etl_tests
build-gcc-linux-no-stl:
name: GCC Linux - No STL
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cmake -DBUILD_TESTS=ON -DNO_STL=ON ./
gcc --version
make
- name: Run tests
run: ./test/etl_tests

View File

@ -6,26 +6,26 @@ on:
branches: [ master ]
jobs:
# build-windows-vs2019:
# name: Windows VS2019 Debug
# runs-on: [windows-latest]
build-windows-vs2019:
name: Windows VS2019 Debug
runs-on: [windows-latest]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
# - name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v1.0.1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.1
# - name: Build
# run: |
# cmake -G "Visual Studio 16 2019" -DBUILD_TESTS=ON ./
# MSBuild.exe etl.sln
- name: Build
run: |
cmake -G "Visual Studio 16 2019" -DBUILD_TESTS=ON ./
MSBuild.exe etl.sln
# - name: Run tests
# run: ./test/debug/etl_tests.exe
- name: Run tests
run: ./test/debug/etl_tests.exe
build-windows-vs2019-no-stl:
name: Windows VS2019 Debug - No STL