-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
141 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
build_type: | ||
- Debug | ||
config: | ||
- qt_version: "6.4.2" | ||
|
||
steps: | ||
- name: Install Qt with options and default aqtversion | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
aqtversion: null # use whatever the default is | ||
version: ${{ matrix.config.qt_version }} | ||
cache: true | ||
|
||
- name: Install ninja-build tool (must be after Qt due PATH changes) | ||
uses: turtlesec-no/get-ninja@main | ||
|
||
- name: Make sure MSVC is found when Ninja generator is in use | ||
if: ${{ runner.os == 'Windows' }} | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure project | ||
run: > | ||
cmake -S . -B ./build -G Ninja | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-DENABLE_MAINTAINER_CFLAGS=${{ matrix.build_type == 'Debug' }} | ||
-DBUILD_SHARED_LIBS=${{ matrix.build_type == 'Debug' }} | ||
- name: Build project | ||
run: cmake --build ./build | ||
|
||
- name: Run tests | ||
id: ctest | ||
if: ${{ matrix.build_type == 'Debug' }} | ||
run: ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure | ||
|
||
- name: Read tests log when it fails | ||
uses: andstor/file-reader-action@v1 | ||
if: ${{ steps.ctest.conclusion == 'failure' }} | ||
with: | ||
path: "./build/Testing/Temporary/LastTest.log" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: CI Nightly | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '0 3 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
config: | ||
- name: clang-tidy | ||
cmake_arg: '-DCMAKE_CXX_CLANG_TIDY=clang-tidy' | ||
qt_version: "6.8" | ||
|
||
- name: clazy | ||
cmake_arg: '-DCMAKE_CXX_COMPILER=clazy' | ||
qt_version: "6.8" | ||
|
||
steps: | ||
- name: Install Qt ${{ matrix.config.qt_version }} with options and default aqtversion | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
version: ${{ matrix.config.qt_version }} | ||
cache: true | ||
|
||
- name: Install ninja-build tool (must be after Qt due PATH changes) | ||
uses: turtlesec-no/get-ninja@main | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Configure project | ||
run: > | ||
cmake -S . -B ./build -G Ninja ${{ matrix.config.cmake_arg }} | ||
-DCMAKE_BUILD_TYPE=Debug | ||
--warn-uninitialized -Werror=dev | ||
- name: Build Project | ||
run: cmake --build ./build |
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
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