Clean up Qt-related warnings #7
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
CFLAGS: -fsanitize=address | |
CXXFLAGS: -fsanitize=address | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Install dependencies for Ubuntu | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes help2man qtbase5-dev qttools5-dev qttools5-dev-tools libchewing3-dev lcov | |
gcc --version | |
g++ --version | |
gcov --version | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
- name: Install dependencies for macOS | |
run: | | |
# dependencies | |
brew update | |
brew install libchewing qt@5 | |
echo "CMAKE_PREFIX_PATH=$(brew --prefix qt@5)" >> $GITHUB_ENV | |
if: ${{ matrix.os == 'macos-latest' }} | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_GCOV=yes | |
- name: Show config | |
run: cmake -B ${{github.workspace}}/build -LA | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build -v --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
- name: Collect coverage stats | |
run: scripts/lcov.sh | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
- name: Coveralls | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.info | |
if: ${{ matrix.os == 'ubuntu-latest' }} |