-
Notifications
You must be signed in to change notification settings - Fork 108
82 lines (71 loc) · 2.24 KB
/
feature-matrix.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
72
73
74
75
76
77
78
79
80
81
82
name: Feature matrix
on: [push, pull_request]
jobs:
ubuntu_2204:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
lua_addon: ["y", "n"]
sdcc: ["y", "n"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '2.8.6'
- name: Setup Qt
uses: ConorMacBride/install-package@v1
with:
apt: libqt5svg5-dev qtbase5-dev qtbase5-dev-tools qttools5-dev-tools
- name: Build
run: |
name="redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}"
xmake f --qt=/usr --prefix=/ --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }}
xmake b
xmake i -o "pkg/$name"
tar -cf "pkg/$name.tar" -C pkg "$name"
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Ubuntu 22.04 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
path: pkg/*.tar
windows_msvc_x64:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
lua_addon: ["y", "n"]
sdcc: ["y", "n"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '2.8.6'
- name: Setup Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: windows
target: desktop
arch: win64_msvc2019_64
archives: qtbase qtsvg qttools
- name: Build
run: |
$install_dir = "pkg/redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}"
xmake f -p windows -a x64 --qt="${env:QT_ROOT_DIR}" --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }}
xmake b
xmake i -o $install_dir
mv $install_dir/bin/* $install_dir/
rmdir $install_dir/bin
rm $install_dir/vc_redist.x64.exe
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Windows MSVC x64 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
path: pkg/*