2024-01-19 09:25:21 +08:00
|
|
|
name: Feature matrix
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu_2204:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
strategy:
|
2024-03-01 18:27:15 +08:00
|
|
|
fail-fast: false
|
2024-01-19 09:25:21 +08:00
|
|
|
matrix:
|
|
|
|
lua_addon: ["y", "n"]
|
|
|
|
sdcc: ["y", "n"]
|
|
|
|
steps:
|
2024-09-12 13:42:28 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-04 18:38:09 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-01-19 09:25:21 +08:00
|
|
|
|
|
|
|
- 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: |
|
2024-05-09 16:14:47 +08:00
|
|
|
name="redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}"
|
|
|
|
xmake f --qt=/usr --prefix=/ --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }}
|
2024-01-19 09:25:21 +08:00
|
|
|
xmake b
|
|
|
|
xmake i -o "pkg/$name"
|
|
|
|
tar -cf "pkg/$name.tar" -C pkg "$name"
|
|
|
|
|
|
|
|
- name: Upload
|
2024-09-12 13:42:28 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-01-19 09:25:21 +08:00
|
|
|
with:
|
2024-05-09 16:14:47 +08:00
|
|
|
name: Ubuntu 22.04 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
|
2024-01-19 09:25:21 +08:00
|
|
|
path: pkg/*.tar
|
|
|
|
|
|
|
|
windows_msvc_x64:
|
|
|
|
runs-on: windows-2019
|
|
|
|
strategy:
|
2024-03-01 18:27:15 +08:00
|
|
|
fail-fast: false
|
2024-01-19 09:25:21 +08:00
|
|
|
matrix:
|
|
|
|
lua_addon: ["y", "n"]
|
|
|
|
sdcc: ["y", "n"]
|
|
|
|
steps:
|
2024-09-12 13:42:28 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-04 18:38:09 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-01-19 09:25:21 +08:00
|
|
|
|
|
|
|
- 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: |
|
2024-05-09 16:14:47 +08:00
|
|
|
$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 }}
|
2024-01-19 09:25:21 +08:00
|
|
|
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
|
2024-09-12 13:42:28 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-01-19 09:25:21 +08:00
|
|
|
with:
|
2024-05-09 16:14:47 +08:00
|
|
|
name: Windows MSVC x64 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
|
2024-01-19 09:25:21 +08:00
|
|
|
path: pkg/*
|