From caabbba35746d7278bde9385c02de424a3bdb6e3 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 2 Oct 2020 17:41:01 +0100 Subject: [PATCH] Add VS2019 configuration to Github CI --- .github/workflows/clang.yml | 91 ++++++++++++++++++++++ .github/workflows/gcc.yml | 45 +++++++++++ .github/workflows/{main.yml => vs2019.yml} | 32 ++++---- 3 files changed, 152 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/clang.yml create mode 100644 .github/workflows/gcc.yml rename .github/workflows/{main.yml => vs2019.yml} (57%) diff --git a/.github/workflows/clang.yml b/.github/workflows/clang.yml new file mode 100644 index 00000000..732b73fe --- /dev/null +++ b/.github/workflows/clang.yml @@ -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 diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml new file mode 100644 index 00000000..6c09d11f --- /dev/null +++ b/.github/workflows/gcc.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/vs2019.yml similarity index 57% rename from .github/workflows/main.yml rename to .github/workflows/vs2019.yml index 92737601..f1468e9a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/vs2019.yml @@ -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