Move counter in / after variations #377
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: 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: '6.8.1' | |
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/install-qt-action@v4 | |
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] | |
arch: [x64, x86] | |
qt: ['6.8.1'] | |
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/install-qt-action@v4 | |
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/install-qt-action@v4 | |
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 | |