forked from nickbnf/glogg
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.42 KB
/
appimage.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
name: C/C++ AppImage
on:
workflow_dispatch:
jobs:
build-appimage:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install curl
run: sudo apt-get install libcurl4-openssl-dev
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: 5.9.9
- name: Prepare compiler env
run: |
echo "::set-env name=CC::gcc-8"
echo "::set-env name=CXX::g++-8"
- name: Configure
run: cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
- name: Build
run: ninja klogg
- name: Install
run: DESTDIR=AppDir ninja install
- name: Bundle Qt
run: |
wget -c -q "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
./linuxdeployqt-continuous-x86_64.AppImage AppDir/usr/bin/klogg -qmake=$Qt5_Dir/bin/qmake
- name: Build AppImage
uses: AppImageCrafters/build-appimage-action@master
env:
UPDATE_INFO: gh-releases-zsync|AppImageCrafters|klogg|latest|*x86_64.AppImage.zsync
with:
recipe: AppImageBuilder.yml
- uses: actions/upload-artifact@v2
with:
name: AppImage
path: './*.AppImage*'