-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.23 KB
/
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
47
48
49
50
51
52
53
54
55
56
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-24.04
preset:
- dev
- rel
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.6.0
cache: true
- name: Checkout qt-embedder
uses: actions/checkout@v4
with:
submodules: true
- name: Install clang
run: sudo apt-get update && sudo apt-get install -y clang ninja-build libgtk-3-dev unzip libssl-dev lld curl wget gdebi-core libdbus-glib-1-2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Download flutter engine
run: sh download_engine.sh
env:
GH_TOKEN: ${{ github.token }}
- name: Configure project
run: cmake -S . -B ./build-${{ matrix.preset }} --preset ${{ matrix.preset }}
- name: Build Project
run: cmake --build ./build-${{ matrix.preset }}
- name: Build example
run: |
./build_example.sh