forked from mortbopet/Ripes
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (83 loc) · 3.06 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Ubuntu 20.04 / Qt 6.5.0
on:
workflow_run:
workflows: ["Release setup"]
types: [completed]
jobs:
buildUbuntuXenial:
runs-on: ubuntu-20.04
env:
CC: gcc-9
CXX: g++-9
strategy:
matrix:
build-type: [Release, Debug]
steps:
- name: Job info
run: |
echo "GitHub Ref: ${{ github.ref }}"
echo "Event: ${{ github.event }}"
- name: get container ready for build
run: |
sudo apt-get update
sudo apt-get upgrade -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -q --force-yes \
automake cmake git wget libfuse2 desktop-file-utils tree \
build-essential libgl1-mesa-dev libxkbcommon-x11-0 libpulse-dev \
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 \
libxcb-xinerama0 libxcb-composite0 libxcb-cursor0 libxcb-damage0 \
libxcb-dpms0 libxcb-dri2-0 libxcb-dri3-0 libxcb-ewmh2 libxcb-glx0 \
libxcb-present0 libxcb-randr0 libxcb-record0 libxcb-render0 libxcb-res0 \
libxcb-screensaver0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libegl1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
py7zrversion: '>=0.20.2'
version: '6.5.0'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
modules: 'qtcharts'
- name: checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: build Ripes
run: |
echo "--------------------------------------------------------------"
echo "building desktop"
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} .
make -j $(nproc)
- name: package artifacts
run: |
mkdir -p appdir/usr/bin/
mv Ripes appdir/usr/bin/
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
source .github/workflows/scripts/set_version.sh
export VERSION=${RIPES_VERSION}-linux # linuxdeployqt uses this for naming the package
echo "Version is: ${VERSION}"
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/usr/share/applications/*.desktop \
-appimage -verbose=2 -extra-plugins=iconengines
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.build-type }}_executable
path: Ripes*.AppImage*
- name: continuous release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/master' && matrix.build-type == 'Release'
with:
prerelease: true
files: Ripes*.AppImage*
tag_name: continuous
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: (startsWith(github.ref, 'refs/tags/')) && (matrix.build-type == 'Release')
name: tagged release
uses: softprops/action-gh-release@v1
with:
files: Ripes*.AppImage*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}