build: Fix linking against GTest #39
Workflow file for this run
This file contains hidden or 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: CI | |
| on: [ push, pull_request, workflow_dispatch ] | |
| jobs: | |
| build_and_test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build and run tests | |
| run: > | |
| docker run --rm | |
| -v "${GITHUB_WORKSPACE}:/workspace" | |
| julrich/docker_qt:latest | |
| /bin/bash -c " | |
| cd /workspace | |
| && g++ --version | |
| && qmake6 --version | |
| && cd tests | |
| && mkdir _build | |
| && cd _build | |
| && cmake -DCMAKE_BUILD_TYPE=Release .. | |
| && make all | |
| && ctest --output-on-failure | |
| " |