avoid using id in qbs files #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Qbs-Tests | |
on: push | |
jobs: | |
linux: | |
name: "Linux" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- image: arbmind/qbs-clang:1.21.0-14 | |
build_args: "modules.cpp.cxxStandardLibrary:libc++ modules.cpp.staticLibraries:c++,c++abi" | |
- image: arbmind/qbs-clang:2.1.2-17 | |
build_args: "modules.cpp.cxxStandardLibrary:libc++ modules.cpp.staticLibraries:c++,c++abi" | |
- image: arbmind/qbs-clang-libstdcpp:1.24.0-15-12 | |
- image: arbmind/qbs-gcc:1.21.0-11 | |
- image: arbmind/qbs-gcc:1.24.0-12 | |
- image: arbmind/qbs-gcc:2.1.2-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Googletest | |
run: third_party/git_clone_googletest.sh | |
- name: Build and run Tests | |
run: >- | |
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project | |
--env GTEST_OUTPUT=xml:/project/reports/qbs/ | |
${{ matrix.image }} | |
build | |
--build-directory /tmp/build | |
${{ matrix.build_args }} | |
-p autotest-runner | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: ${{ matrix.image }} Tests | |
path: reports/**/*.xml | |
reporter: java-junit | |
windows: | |
name: "Windows" | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-2019 | |
vcvars: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat | |
experimental: false | |
- os: windows-2022 | |
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat | |
experimental: false | |
steps: | |
- name: Install Qbs | |
run: choco install qbs | |
- name: Setup Qbs | |
run: | | |
qbs setup-toolchains --type msvc $(cmd /c '"${{ matrix.vcvars }}" >nul & where cl') msvc | |
- uses: actions/checkout@v3 | |
- name: Get Googletest | |
run: third_party/git_clone_googletest.sh | |
shell: bash | |
- name: Build and run Tests | |
env: | |
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\msvc\ | |
run: >- | |
qbs build profile:msvc | |
--build-directory ${env:RUNNER_TEMP}\build | |
-p autotest-runner | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: ${{ matrix.os }} Tests | |
path: reports/**/*.xml | |
reporter: java-junit |