Skip to content

Fix annotations losing time and adding blanks #351

Fix annotations losing time and adding blanks

Fix annotations losing time and adding blanks #351

Workflow file for this run

name: CI
on:
# push:
# branches: [ master, ci-sandbox ]
# pull_request:
# branches: [ master ]
jobs:
build-qmake:
strategy:
matrix:
os: [macos-latest]
runs-on: ${{ matrix.os }}
env:
QT_VERSION: '5.14.2'
steps:
- name: Look for cached Qt ${{ env.QT_VERSION }}
id: cache-qt
uses: actions/[email protected]
with:
path: ${{ runner.workspace }}/Qt${{ env.QT_VERSION }}
key: ${{ runner.os }}-Qt${{ env.QT_VERSION }}
- name: Install Qt ${{ env.QT_VERSION }}
uses: jurplel/[email protected]
with:
version: ${{ env.QT_VERSION }}
dir: ${{ runner.workspace }}/Qt${{ env.QT_VERSION }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Checkout sources
uses: actions/[email protected]
- name: configure
run: qmake
- name: make
run: make
build:
# name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
arch: [x64, x86]
qt: ['5.14.2']
exclude:
- os: macos-latest
arch: x86
- os: ubuntu-latest
arch: x86
# - os: windows-latest
# arch: x86
include:
- os: macos-latest
triplet: x64-osx
vcpkg_packages: 'zlib'
- os: ubuntu-latest
arch: x64
triplet: x64-linux
vcpkg_packages: 'zlib'
# - os: windows-latest
# arch: x64
# triplet: x64-windows
# qt_arch: win64_msvc2017_64
# vcpkg_packages: 'zlib'
# - os: windows-latest
# arch: x86
# triplet: x86-windows
# qt_arch: win32_msvc2017
# vcpkg_packages: 'zlib'
env:
VCPKG_COMMIT_ID: 'c7ab9d3110813979a873b2dbac630a9ab79850dc' # tag 2020.04
steps:
- name: Install pulseaudio
if: ${{ runner.os == 'Linux' }}
run: brew install pulseaudio
- name: Look for cached Qt ${{ matrix.qt }}
id: cache-qt
uses: actions/[email protected]
with:
path: ${{ runner.workspace }}/Qt${{ matrix.qt }}-${{ matrix.arch }}
key: Qt-${{ runner.os }}-${{ matrix.qt }}-${{ matrix.arch }}
- name: Install Qt ${{ matrix.qt }}
uses: jurplel/[email protected]
with:
version: ${{ matrix.qt }}
arch: ${{ matrix.qt_arch }}
dir: ${{ runner.workspace }}/Qt${{ matrix.qt }}-${{ matrix.arch }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Checkout sources
uses: actions/[email protected]
# see example at https://github.com/lukka/CppBuildTasks-Validation/blob/master/.github/workflows/hosted-basic.yml
- uses: lukka/get-cmake@latest
#- name: dir
# run: gci -recurse ${{ runner.workspace }}
- name: Restore artifacts, or run vcpkg, build and cache artifacts
uses: lukka/run-vcpkg@v2
id: runvcpkg
with:
vcpkgArguments: '${{ matrix.vcpkg_packages }}'
vcpkgTriplet: ${{ matrix.triplet }}
vcpkgDirectory: ${{ runner.workspace }}/b/vcpkg
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
#- name: Prints outputs of run-vcpkg task
#run: echo "'${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}' '${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}' "
- name: configure && make
uses: lukka/run-cmake@v2
id: runcmake_cmd
with:
cmakeGenerator: Ninja
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
useVcpkgToolchainFile: true
cmakeAppendedArgs: ${{ matrix.cmakeConfigureArgs }}
vcpkgTriplet: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}
buildDirectory: '${{ runner.workspace }}/b/ninja/'
- name: make test
if: ${{ runner.os != 'Windows' }}
run: cd '${{ runner.workspace }}/b/ninja' && ctest -V
build-min:
runs-on: ubuntu-16.04
env:
QT_VERSION: '5.7'
steps:
- name: Cache Qt ${{ env.QT_VERSION }}
id: cache-qt
uses: actions/[email protected]
with:
path: ${{ runner.workspace }}/Qt${{ env.QT_VERSION }}
key: ${{ runner.os }}-Qt${{ env.QT_VERSION }}
- name: Install Qt ${{ env.QT_VERSION }}
uses: jurplel/[email protected]
with:
version: ${{ env.QT_VERSION }}
dir: ${{ runner.workspace }}/Qt${{ env.QT_VERSION }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Checkout sources
uses: actions/[email protected]
- name: configure
run: >-
cmake -S . -B _build
-DENABLE_SOUNDS=OFF
-DENABLE_TTS=OFF
-DENABLE_SCID_SUPPORT=OFF
- name: make
run: cmake --build _build
- name: make test
run: cd _build && ctest -V