forked from MirrorStudio-devTeam/panda-qt5-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (50 loc) · 2.05 KB
/
build.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 on Ubuntu
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qt5-qmake qtbase5-dev libqt5xdg-dev extra-cmake-modules libdbusmenu-qt5-dev libxcb-ewmh-dev libqt5x11extras5-dev libkf5windowsystem-dev qtbase5-private-dev qtmultimedia5-dev cmake clang
- name: Configure and build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
make DESTDIR=QtPlugin -j$(nproc) install
mv QtPlugin/usr/etc QtPlugin/ || true
find QtPlugin/
cd QtPlugin/ && zip --symlinks -r ../QtPlugin_Ubuntu.zip . && cd -
- 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
RELEASE_ID=$(./continuous-release-manager-linux)
echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV
- 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
tag_name: continuous
release_id: ${{ env.RELEASE_ID }}