-
Notifications
You must be signed in to change notification settings - Fork 12
82 lines (82 loc) · 2.38 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
Windows:
runs-on: windows-2022
steps:
- name: Checkout
with:
submodules: true
uses: actions/checkout@v4
- name: Init MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.3'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
- name: Fetch prebuilt
run: ./build.win.ps1 prebuilt fetch
- name: Build lanthing-pc
run: ./build.win.ps1 build Release
- name: Run Tests
run: |
$Env:PATH = "${{ github.workspace }}/install/RelWithDebInfo/bin;$Env:PATH"
cd ./build/RelWithDebInfo
ctest -C RelWithDebInfo -V
Linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
with:
submodules: true
uses: actions/checkout@v4
- name: Install deps
run: |
sudo apt-get clean
sudo apt-get update
sudo apt-get -y install gcc-10 g++-10 pkg-config libglib2.0-dev libx11-dev libdrm-dev libva-dev libva-drm2 libgl-dev libgles-dev libgles1 libgles2 libegl-dev libmfx-dev libvdpau-dev
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.3'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
- name: Fetch prebuilt
run: bash build.linux.sh prebuilt fetch
- name: Build lanthing-pc
run: |
alias gcc='gcc-10'
alias g++='g++-10'
export CC=`which gcc-10`
export CXX=`which g++-10`
bash build.linux.sh build Release
macOS:
runs-on: macos-14
steps:
- name: Checkout
with:
submodules: true
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.3'
host: 'mac'
target: 'desktop'
arch: 'clang_64'
- name: Fetch prebuilt
run: bash build.mac.sh prebuilt fetch
- name: Build lanthing-pc
run: |
bash build.mac.sh build Release