forked from mrkite/minutor
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.21 KB
/
cpp-qt-ubuntu.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
name: Ubuntu Qt CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
name: [ubuntu-20.04, ubuntu-22.04]
include:
# - name: ubuntu-18.04
# os: ubuntu-18.04
# artifact: minutor
- name: ubuntu-20.04
os: ubuntu-20.04
artifact: minutor
- name: ubuntu-22.04
os: ubuntu-22.04
artifact: minutor
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev qt5-qmake qtbase5-dev-tools -y
- name: Create BUILD folder
run: |
mkdir ../build
- name: Build (Ubuntu)
working-directory: ../build
run: |
qmake ${{ github.workspace }}/${{ matrix.artifact }}.pro
make
env:
# only needed for Ubuntu-16.04
LD_LIBRARY_PATH: '${{ runner.workspace }}/Qt/5.5/gcc_64/lib'
- name: Archive build result
uses: actions/upload-artifact@v3
with:
name: Binary ${{ matrix.name }}
path: ${{ runner.workspace }}/build/${{ matrix.artifact }}