-
Notifications
You must be signed in to change notification settings - Fork 4
102 lines (86 loc) · 3.21 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: GitHub CI
on: [ push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
os-name: windows
qt-version: '5.12'
mingw-short-version: 73
qt-extra-archives: 'qtmultimedia qtimageformats qtwinextras opengl32sw i686'
- os: ubuntu-latest
os-name: linux
qt-version: '5.12'
qt-extra-archives: 'qtmultimedia qtimageformats qtx11extras icu'
- os: ubuntu-latest
os-name: linux
qt-version: '5.15'
qt-extra-archives: 'qtmultimedia qtimageformats qtx11extras icu'
- os: macos-12
os-name: mac
qt-version: '5.12'
qt-extra-archives: 'qtmultimedia qtimageformats qtmacextras'
- os: ubuntu-latest
os-name: linux
qt-version: '6.5'
qt-extra-archives: 'icu'
defaults:
run:
shell: bash
steps:
- name: Configure git
run: |
git config --global core.symlinks true
git config --global core.autocrlf input
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt-version }}
host: ${{ matrix.os-name }}
modules: ${{format('{0}', (startsWith(matrix.qt-version, '6') && ' qt5compat qtmultimedia qtimageformats' || ''))}}
arch: ${{ matrix.mingw-short-version != '' && format('win32_mingw{0}', matrix.mingw-short-version) || '' }}
tools: ${{ matrix.mingw-short-version != '' && format('tools_mingw,qt.tools.win32_mingw{0}0', matrix.mingw-short-version) || '' }}
archives: ${{ format('qttools qtsvg qtbase qttranslations {0}', matrix.qt-extra-archives) }}
add-tools-to-path: true
# cache: true
- name: Update PATH
run: |
set -xue
cygpath -w /usr/bin >> $GITHUB_PATH
cygpath -w "${IQTA_TOOLS}/mingw${{matrix.mingw-short-version}}0_32/bin" >> $GITHUB_PATH
cygpath -w "${Qt${{startsWith(matrix.qt-version, '6') && '6_DIR' || '5_Dir' }}}/bin" >> $GITHUB_PATH
if: ${{ matrix.os-name == 'windows' }}
- name: Check available tools
run: |
set -xueo pipefail
uname -a
qmake --version
make --version
g++ --version
- name: Check translations
run: |
rm aqtinstall.log
lupdate trikCheckApp.pro
gitStatus=$(git status -s && git submodule --quiet foreach --recursive git status -s)
if [ ! -z "$gitStatus" ]
then
echo $gitStatus
echo git status must be clean
git diff
false
else
true
fi
- name: QMake
run: "qmake${{startsWith(matrix.qt-version, '6') && '6' || '' }} trikCheckApp.pro CONFIG+=release"
- name: QMake all
timeout-minutes: 1
run: make -j $(nproc) qmake_all
- name: Make all
timeout-minutes: 10
run: make -j $(nproc) all