-
Notifications
You must be signed in to change notification settings - Fork 19
65 lines (52 loc) · 2.22 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
name: AppImage
on:
push:
tags:
- '**'
jobs:
build-appimage:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
path: ./pprzgcs
- name: setEnv
run: |
export MAKEFLAGS=-j$(nproc)
PPRZGCS_VERSION=$(echo "${{ github.ref }}" | sed 's/refs.tags.\(.*\)/\1/g' | sed 's/\//_/g')
PPRZGCS_VERSION="${PPRZGCS_VERSION:-$(git describe --tags)}"
echo "VERSION: $PPRZGCS_VERSION"
echo "PPRZGCS_VERSION=$PPRZGCS_VERSION" >> $GITHUB_ENV
echo "VERSION: ${{ env.PPRZGCS_VERSION }}"
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libproj-dev libsqlite3-dev libzip-dev qtbase5-dev libqt5svg5-dev libqt5texttospeech5-dev mesa-common-dev libglu1-mesa-dev cmake extra-cmake-modules
- name: build
run: |
cmake -S pprzgcs/ext/IvyQt -B build.appimage/ext/IvyQt -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=AppDir/usr
cmake --build build.appimage/ext/IvyQt -j$(nproc)
cmake --install build.appimage/ext/IvyQt
cmake -S pprzgcs/ext/pprzlinkQt -B build.appimage/ext/pprzlinkQt -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=AppDir/usr
cmake --build build.appimage/ext/pprzlinkQt -j$(nproc)
cmake --install build.appimage/ext/pprzlinkQt
cmake -S pprzgcs -B build.appimage/pprzgcs -DCMAKE_INSTALL_PREFIX="AppDir/usr"
cmake --build build.appimage/pprzgcs -j$(nproc)
cmake --install build.appimage/pprzgcs
- name: Build AppImage
uses: paparazzi/build-appimage@master
env:
UPDATE_INFO: gh-releases-zsync|Fabien-B|PprzGCS|latest|*x86_64.AppImage.zsync
with:
recipe: pprzgcs/appimage-amd64.yml
- uses: actions/upload-artifact@v2
with:
name: AppImage_${{ env.PPRZGCS_VERSION }}
path: './*.AppImage*'
- name: make release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
*.AppImage