-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (52 loc) · 2.03 KB
/
linux-release.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
name: linux-release
on: workflow_dispatch
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '${{ env.QT_VERSION }}'
target: 'desktop'
install-deps: 'true'
modules: 'qtscript'
- name: Get linuxdeployqt
run: |
wget -nv -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- name: Versions
run: qmake -v
- name: Create build directory
run: |
mkdir ${{ env.SOURCE_DIR }}/build
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/bin
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/share
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/share/applications
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/icons
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/icons/hicolor
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/icons/hicolor/256x256
mkdir -p ${{ env.SOURCE_DIR }}/build/usr/icons/hicolor/256x256/apps
- name: Build
run: |
cd emulator
qmake "CONFIG+=release" -r GST_VERSION=1.0 QtUkncBtl.pro
make
- name: Packaging
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
cp ${{ env.SOURCE_DIR }}/emulator/QtUkncBtl ./usr/bin/
cp ${{ env.SOURCE_DIR }}/linux/qtukncbtl.desktop ./usr/share/applications/
cp ${{ env.SOURCE_DIR }}/linux/qtukncbtl.png ./usr/icons/hicolor/256x256/apps/
../linuxdeployqt-continuous-x86_64.AppImage usr/share/applications/qtukncbtl.desktop -appimage -extra-plugins=iconengines
ls -l *.AppImage
- name: Linux artefact
uses: actions/upload-artifact@v3
with:
name: AppImage
path: ${{ env.SOURCE_DIR }}/build/*.AppImage