forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (66 loc) · 2.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: AppImage
on:
push:
branches: [master]
tags:
release:
types: ['created']
defaults:
run:
shell: bash
jobs:
build:
name: ${{ matrix.os }} - SQLCipher ${{ matrix.sqlcipher }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-18.04]
sqlcipher: ["0", "1"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install qttools5-dev libqt5scintilla2-dev libqcustomplot-dev libqt5svg5 libsqlcipher-dev qt5-default
- name: Build SQLite
if: matrix.sqlcipher == '0'
run: |
wget -O sqlite.tar.gz https://sqlite.org/2022/sqlite-autoconf-3380500.tar.gz
tar -xzf sqlite.tar.gz
cd sqlite-autoconf-*
./configure --enable-shared=no
make
sudo make install
- name: Configure CMake
run: |
mkdir appbuild
mkdir appdir
cd appbuild
cmake -DCMAKE_INSTALL_PREFIX:PATH=../appdir/usr -Wno-dev -DFORCE_INTERNAL_QSCINTILLA=ON -Dsqlcipher=${{ matrix.sqlcipher }} ..
- name: Run make
run: |
cd appbuild
make install
- name: Build AppImage
run: |
git rev-list master --count
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
export VERSION=$(printf "master-`git rev-list HEAD --count`-` git -C . rev-parse --short HEAD`")
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
- name: Rename AppImage
if: matrix.sqlcipher == '1'
run: |
export FILE=$(ls DB_Browser_for_SQLite*.AppImage)
export FILE=${FILE/SQLite/SQLCipher}
mv DB_Browser_for_SQLite*.AppImage $FILE
- name: Upload to release page
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
chmod a+x upload.sh
UPLOADTOOL_ISPRERELEASE=true ./upload.sh DB_Browser_for_*.AppImage