Skip to content

Require C++17, port from deprecated qAsConst to std::as_const #120

Require C++17, port from deprecated qAsConst to std::as_const

Require C++17, port from deprecated qAsConst to std::as_const #120

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
config:
- { os: macos-latest, cxx: "clang++" }
- { os: ubuntu-latest, cxx: "g++" }
- { os: windows-latest, cxx: "cl" }
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Qt
id: cache-qt
uses: actions/[email protected]
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/[email protected]
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Build with CMake in ${{ matrix.config.os }} / ${{ matrix.config.cxx }}
env:
CXX: ${{ matrix.config.cxx }}
run: |
cmake -B cmake_build
cmake --build cmake_build -j2
- name: Build with QMake in ${{ matrix.config.os }} / ${{ matrix.config.cxx }}
if: matrix.config.os != 'windows-latest'
env:
CXX: ${{ matrix.config.cxx }}
run: |
qmake
make -j2