-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (50 loc) · 1.87 KB
/
ubuntu.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
name: Build for Ubuntu
on:
push:
branches:
- main
pull_request:
jobs:
build_ubuntu:
runs-on: ubuntu-22.04 # TODO: Make build on 20.04 Qt 5.12
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies for Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y git curl wget zip cmake pkgconf libqt5widgets5 qttools5-dev libkf5windowsystem-dev
- name: Build and package for Ubuntu
run: |
git submodule update --init --recursive
mkdir build ; cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
make DESTDIR=out install
find out/
cd out/ && zip --symlinks -r ../launch_Ubuntu.zip . && cd -
- name: Upload Ubuntu artifact
uses: actions/upload-artifact@v2
with:
name: launch-artifact-ubuntu
path: build/launch_Ubuntu.zip
- name: Create GitHub Release using Continuous Release Manager
if: github.event_name == 'push' # Only run for push events, not pull requests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -L -o continuous-release-manager-linux https://github.com/probonopd/continuous-release-manager/releases/download/continuous/continuous-release-manager-linux
chmod +x continuous-release-manager-linux
./continuous-release-manager-linux
- name: Upload to GitHub Release
if: github.event_name == 'push' # Only run for push events, not pull requests
uses: xresloader/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./build/*.zip"
draft: false
verbose: true
branches: main
update_latest_release: true
tag_name: continuous