-
Notifications
You must be signed in to change notification settings - Fork 31
63 lines (56 loc) · 1.84 KB
/
cd_research_on_debian_bookworm.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
name: CD for Mogan Research on Debian bookworm
on:
workflow_dispatch:
push:
tags:
- '*'
env:
XMAKE_ROOT: y
QT_QPA_PLATFORM: offscreen
INSTALL_DIR: tmp/build/packages/app.mogan/
jobs:
build:
container: debian:bookworm
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
include:
- qt_pkg: qt6-base-dev libqt6svg6-dev qt6-image-formats-plugins
qt_ver: 6
steps:
- name: Install dependencies
run: |
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc git 7zip unzip curl build-essential \
fonts-noto-cjk libcurl4-openssl-dev libfreetype-dev libfontconfig-dev \
${{matrix.qt_pkg}} libgit2-dev zlib1g-dev libssl-dev libjpeg62-turbo-dev cmake \
fakeroot debhelper libmimalloc-dev
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: git add safe directory
run: git config --global --add safe.directory '*'
- name: set XMAKE_GLOBALDIR
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.7
actions-cache-folder: '.xmake-cache'
- name: xmake repo --update
run: xmake repo --update
- name: Generate Installer
run: |
packages/debian/package.sh
cp ../mogan*.deb mogan-research-v1.2.9-rc5-debian12.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