forked from felixonmars/panda-topbar
-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (55 loc) · 1.81 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
59
60
61
62
name: Build Menu_Ubuntu.zip
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
curl \
wget \
zip \
pkgconf \
cmake \
qtbase5-dev \
qtbase5-dev-tools \
qtdeclarative5-dev \
libdbusmenu-qt5-dev \
libpulse-dev \
libxcomposite-dev \
libqalculate-dev
- name: Build Menu_Ubuntu.zip
run: |
mkdir build ; cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc) install
find System/Menu.app/
cd ./System/
zip --symlinks -r ../Menu_Ubuntu.zip Menu.app/
- name: Upload Menu_Ubuntu.zip
uses: actions/upload-artifact@v2
with:
name: Menu_Ubuntu.zip
path: build/Menu_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
run: |
gh release upload continuous ./build/Menu_Ubuntu.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}