Skip to content

Commit 1d1fb9a

Browse files
Ubdated linux-builds.yml workflow
1 parent 3a980f5 commit 1d1fb9a

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

.github/workflows/linux-builds.yml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
11
name: linux-builds
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_dispatch:
46

57
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
1310
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
1632
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
2236
- name: qmake
2337
run: qmake
2438
- name: make
25-
run: make -j4
39+
run: make -j$(nproc)

0 commit comments

Comments
 (0)