-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (45 loc) · 1.25 KB
/
build.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
name: 'Build'
on:
push:
branches-ignore:
- master
tags-ignore:
- '*'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Linux: https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/
# macOS: https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/
qt-version: ['5.12.8', '6.4.1']
experimental: [false]
steps:
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/install-qt
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt-version }}
cache: true
cache-key-prefix: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}
#
# Clone dependencys
#
- name: Clone MarkdownEdit's dependencys
run: |
git submodule update --init --recursive -j 4
#
# Build MarkdownEdit using CMake
#
- name: Build MarkdownEdit using CMake
run: |
mkdir build-cmake && cd build-cmake
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -j8
cd ..