File tree Expand file tree Collapse file tree 1 file changed +30
-16
lines changed Expand file tree Collapse file tree 1 file changed +30
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : linux-builds
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ workflow_dispatch :
4
6
5
7
jobs :
6
- build :
7
- strategy :
8
- matrix :
9
- os : [ubuntu-22.04, ubuntu-20.04]
10
-
11
- runs-on : ${{ matrix.os }}
12
-
8
+ build_ubuntu_2204 :
9
+ runs-on : ubuntu-22.04
13
10
steps :
14
- - uses : actions/checkout@v1
15
- - name : install qt
11
+ - uses : actions/checkout@v2
12
+ - name : Cache Qt
13
+ id : cache-qt-6-4
14
+ uses : actions/cache@v3
15
+ with :
16
+ path : ../Qt/6.4.2
17
+ key : ${{ runner.os }}-QtCache-Qt6-4
18
+
19
+ - name : Install Qt
20
+ uses : jurplel/install-qt-action@v2
21
+ with :
22
+ version : ' 6.4.2'
23
+ host : ' linux'
24
+ target : ' desktop'
25
+ install-deps : true
26
+ cached : ${{ steps.cache-qt-6-4.outputs.cache-hit }}
27
+ setup-python : true
28
+ tools : ' '
29
+ tools-only : false
30
+
31
+ - name : Ubuntu and Qt version
16
32
run : |
17
- sudo apt-get update --fix-missing
18
- sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
19
- sudo apt-get install qtbase5-private-dev
20
- sudo apt-get install qtdeclarative5-dev
21
- sudo apt-get install libqt5svg5-dev
33
+ cat /etc/issue
34
+ echo number of processors: $(nproc)
35
+ qmake -v
22
36
- name : qmake
23
37
run : qmake
24
38
- name : make
25
- run : make -j4
39
+ run : make -j$(nproc)
You can’t perform that action at this time.
0 commit comments