-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# https://github.com/actions/virtual-environments#available-environments
os: [ubuntu-latest, windows-latest, macos-latest, macos-10.15]
qtltsver: ['5.15.2', '6.2.4'] # Qt LTS versions
include:
- os: macos-latest
xcode: latest-stable
# Target the same macOS setup as release workflow
- os: macos-10.15
xcode: '10.3' # Supports macOS Mojave onwards
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qtltsver }}
modules: 'qtcharts'
aqtversion: '==2.0.0'
- name: MSVC Environment Setup
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Xcode Environment Setup
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Configure Build
shell: bash
run: |
if [[ -n "${Qt5_DIR}" ]]; then export CMAKE_PREFIX_PATH=${Qt5_DIR}; fi
if [[ -n "${Qt6_DIR}" ]]; then export CMAKE_PREFIX_PATH=${Qt6_DIR}; fi
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release