-
Notifications
You must be signed in to change notification settings - Fork 56
50 lines (40 loc) · 1.22 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
name: Candle2 CI/CD
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install QT
run: |
sudo apt install qt5-default qt5-qmake qtbase5-dev-tools libqt5serialport5-dev -y
- uses: actions/checkout@v3
- name: configure
run: |
mkdir build && cd build
qmake ../src/candle2.pro
cd ..
- name: Build
run: |
cd build
make -j6
cd ..
- name: Deploy
run: |
mkdir -p AppDir/usr/bin
mkdir deploy && cd deploy
wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x *.AppImage
cp ../build/Candle2 ../AppDir/usr/bin
./linuxdeployqt-continuous-x86_64.AppImage ../AppDir/usr/share/applications/Candle2.desktop -verbose=2
./linuxdeployqt-continuous-x86_64.AppImage ../AppDir/usr/share/applications/Candle2.desktop -verbose=2 -appimage
cd ..
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Candle2_AppImage
path: |
deploy/Candle2*.AppImage