Update GHA action versions #109
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: Clang Tests | |
on: [push, pull_request] | |
jobs: | |
osx-qmake: | |
name: "OSX QMake Qt6 ${{ matrix.std_cpp }}" | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- experimental: true # seems clang version is too old | |
std_cpp: C++20 | |
runs-on: "macos-12" | |
env: | |
QMAKESPEC: macx-clang | |
steps: | |
- name: Install Qt | |
run: | | |
HOMEBREW_NO_AUTO_UPDATE=1 brew install qt6 | |
brew link qt6 --force | |
which qmake | |
qmake --version | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- run: qmake -r "CONFIG+=${{ matrix.std_cpp }}" | |
- run: make -j | |
- run: make check | |
docker-qbs: | |
name: "Docker Qbs ${{ matrix.image }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- image: arbmind/qbs-clang-libstdcpp-qt:2.3.1-18-14-6.7.1 | |
- image: arbmind/qbs-clang-libstdcpp-qt:1.24.1-16-12-6.5.0 | |
- image: arbmind/qbs-clang-libstdcpp-qt:1.22.0-14-11-6.3.0 | |
- image: arbmind/qbs-clang-libstdcpp-qt:1.21.0-13-10-6.2.4 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Build & Test | |
run: >- | |
docker run --rm -v ${GITHUB_WORKSPACE}:/build -w /build | |
${{ matrix.image }} | |
build | |
--file /build/verdigris.qbs | |
--build-directory /tmp/build | |
-p autotest-runner | |
linux-qmake: | |
name: "${{ matrix.host_system }} QMake Clang ${{ matrix.clang_version }} Qt ${{ matrix.qt_version }} ${{ matrix.std_cpp }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- host_system: ubuntu-22.04 | |
clang_version: 14 | |
qt_version: 6.3.0 | |
qt_arch: gcc_64 | |
std_cpp: C++20 | |
- host_system: ubuntu-22.04 | |
clang_version: 13 | |
qt_version: 6.2.4 | |
qt_arch: gcc_64 | |
std_cpp: C++20 | |
runs-on: "${{ matrix.host_system }}" | |
env: | |
QMAKESPEC: linux-clang | |
steps: | |
- name: Cache Qt | |
id: cache-qt | |
uses: actions/cache@v4 | |
with: | |
path: ../Qt | |
key: QtCache-${{ matrix.qt_version }}-${{ matrix.qt_arch }} | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: "${{ matrix.qt_version }}" | |
arch: "${{ matrix.qt_arch }}" | |
cached: ${{ steps.cache-qt.outputs.cache-hit }} | |
- name: Setup Clang | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y clang-${{ matrix.clang_version }} | |
find /usr/bin -name "clang++*" | |
echo $(which clang++) | |
echo $(which clang++-${{ matrix.clang_version }}) | |
sudo rm /usr/bin/clang++ | |
sudo ln -s $(which clang++-${{ matrix.clang_version }}) /usr/bin/clang++ | |
clang++ --version | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- run: qmake -r "CONFIG+=${{ matrix.std_cpp }}" | |
- run: make -j | |
- run: make check |