forked from mrkite/minutor
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.04 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
name: Ubuntu Qt CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
project: 'minutor'
jobs:
build:
strategy:
fail-fast: false
matrix:
name: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
include:
- name: ubuntu-20.04
os: ubuntu-20.04
- name: ubuntu-22.04
os: ubuntu-22.04
- name: ubuntu-24.04
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- 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 }}/${{ env.project }}.pro
make
- name: Archive build result
uses: actions/upload-artifact@v4
with:
name: Binary ${{ matrix.name }}
path: ${{ runner.workspace }}/build/${{ env.project }}