-
Notifications
You must be signed in to change notification settings - Fork 32
54 lines (51 loc) · 1.62 KB
/
cd_research_on_ubuntu_22_04.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
name: CD for Mogan Research on Ubuntu 22.04
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
linuxbuild:
strategy:
matrix:
include:
- ubuntu_ver: 22.04
runs-on: ubuntu-${{ matrix.ubuntu_ver }}
timeout-minutes: 45
if: always()
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y gcc \
qt6-base-dev libqt6svg6-dev qt6-image-formats-plugins fonts-noto-cjk \
libcurl4-openssl-dev libfreetype-dev fakeroot debhelper libgit2-dev zlib1g-dev \
libssl-dev cmake
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.7
actions-cache-folder: ${{ matrix.ubuntu_ver }}-xmake-cache
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
VERSION=${VERSION//\//}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Generate Installer
run: |
packages/debian/package.sh
cp ../mogan*.deb mogan-research-v${VERSION}-ubuntu${{ matrix.ubuntu_ver }}.deb
- name: Upload
uses: actions/upload-artifact@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
path: mogan-*.deb
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: mogan-*.deb