-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 907 Bytes
/
build.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
name: Build
on:
push:
branches:
- main
- dev
- COS3711-03-01
- feature/*
- workflows
pull_request:
branches:
- main
- dev
- COS3711-03-01
- workflows
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Qt and dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev qt6-base-dev qt6-tools-dev qt6-tools-dev-tools cmake g++
- name: Build project
run: |
mkdir -p build
cd build
cmake ../COS3711-03-01/
make
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: build/
outputs:
build-success: ${{ steps.build.outcome == 'success' }}