-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (64 loc) · 1.76 KB
/
package.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
name: linuxPackages
on:
push:
tags:
- 'v[0-9]+.[0-9]+*'
jobs:
packaging:
strategy:
matrix:
qt_version: [5.15.0]
platform: [ubuntu-latest]
arch: [x64]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Dependencies
shell: sh
run: |
sudo apt install libgl-dev libx11-dev libxkbcommon-x11-dev
- name: Installing Qt
uses: jurplel/[email protected]
with:
version: ${{ matrix.qt_version }}
arch: ${{ matrix.qtarch }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: SetEnv
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: Build
shell: sh
run: |
cd scripts
./compile.sh
- name: makeUniversal
shell: sh
run: |
cd scripts
./universal.sh $RELEASE_VERSION
- name: makeDebian
shell: sh
run: |
cd scripts
./debian.sh $RELEASE_VERSION
- name: UploadUniversal
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ../wayPreview_universal_*.zip
tag: ${{ github.ref }}
overwrite: true
body: "linux universal binary release"
- name: UploadDebian
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ../wayPreview_debian_*.deb
tag: ${{ github.ref }}
overwrite: true
body: "debian package release"