github workflow: coverage

This commit is contained in:
BlackMATov
2021-02-11 11:32:27 +07:00
parent ee2a4cc669
commit 96d5400225
4 changed files with 44 additions and 28 deletions

14
.github/workflows/coverage.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: coverage
on: [push, pull_request]
jobs:
build:
runs-on: macos-10.15
name: "coverage"
steps:
- uses: actions/checkout@v2
- name: install lcov
run: brew install lcov
- name: build
run: .ci/build_coverage.sh

View File

@@ -4,18 +4,19 @@ on: [push, pull_request]
jobs:
build:
runs-on: macos-10.15
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
compiler:
- { xcode: "10.3" }
- { xcode: "11.7" }
- { xcode: "12.4" }
name: "xcode-${{matrix.compiler.xcode}}"
config:
# https://github.com/actions/virtual-environments/tree/main/images/macos
- { os: "macos-10.15", xcode: "10.3" }
- { os: "macos-10.15", xcode: "11.7" }
- { os: "macos-10.15", xcode: "12.4" }
name: "xcode-${{matrix.config.xcode}}"
steps:
- uses: actions/checkout@v2
- name: Select Xcode
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.compiler.xcode}}.app"
- name: Build
- name: select xcode
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
- name: build
run: .ci/build_darwin.sh

View File

@@ -4,23 +4,22 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
compiler:
- { cc: "gcc-7", cxx: "g++-7" }
- { cc: "gcc-8", cxx: "g++-8" }
- { cc: "gcc-9", cxx: "g++-9" }
- { cc: "gcc-10", cxx: "g++-10" }
- { cc: "clang-8", cxx: "clang++-8" }
- { cc: "clang-9", cxx: "clang++-9" }
- { cc: "clang-10", cxx: "clang++-10" }
name: "${{matrix.compiler.cxx}}"
config:
# https://github.com/actions/virtual-environments/tree/main/images/linux
- { os: "ubuntu-20.04", cc: "gcc-7", cxx: "g++-7" }
- { os: "ubuntu-20.04", cc: "gcc-8", cxx: "g++-8" }
- { os: "ubuntu-20.04", cc: "gcc-9", cxx: "g++-9" }
- { os: "ubuntu-20.04", cc: "gcc-10", cxx: "g++-10" }
- { os: "ubuntu-20.04", cc: "clang-8", cxx: "clang++-8" }
- { os: "ubuntu-20.04", cc: "clang-9", cxx: "clang++-9" }
- { os: "ubuntu-20.04", cc: "clang-10", cxx: "clang++-10" }
name: "${{matrix.config.cxx}}"
steps:
- uses: actions/checkout@v2
- name: Build
- name: build
run: .ci/build_linux.sh
env:
CC: ${{matrix.compiler.cc}}
CXX: ${{matrix.compiler.cxx}}
env: { CC: "${{matrix.config.cc}}", CXX: "${{matrix.config.cxx}}" }

View File

@@ -9,11 +9,13 @@ jobs:
fail-fast: false
matrix:
config:
- { os: "windows-2016", vs: "Visual Studio 2017" }
- { os: "windows-2019", vs: "Visual Studio 2019" }
platform: [x86, x64]
# https://github.com/actions/virtual-environments/tree/main/images/win
- { os: "windows-2016", vs: "Visual Studio 2017", arch: "x86" }
- { os: "windows-2016", vs: "Visual Studio 2017", arch: "x64" }
- { os: "windows-2019", vs: "Visual Studio 2019", arch: "x86" }
- { os: "windows-2019", vs: "Visual Studio 2019", arch: "x64" }
name: "${{matrix.config.vs}}"
steps:
- uses: actions/checkout@v2
- name: Build
run: .ci\build_windows_${{matrix.platform}}.bat
- name: build
run: .ci\build_windows_${{matrix.config.arch}}.bat