2024-02-28 19:41:05 +08:00
|
|
|
|
name: Unit
|
|
|
|
|
|
2024-09-30 23:04:57 +08:00
|
|
|
|
# disable for now
|
|
|
|
|
# these jobs only run on ubuntu, but seems not only contain linux related features
|
|
|
|
|
on: workflow_dispatch
|
2024-02-28 19:41:05 +08:00
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
ubuntu_makefile_escape:
|
|
|
|
|
name: Unix makefile escape
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
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-02-28 19:41:05 +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: |
|
|
|
|
|
xmake f --qt=/usr
|
|
|
|
|
xmake b test-escape
|
|
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
|
run: |
|
|
|
|
|
export QT_ASSUME_STDERR_HAS_CONSOLE=1
|
|
|
|
|
xmake r test-escape
|
2024-03-31 08:27:17 +08:00
|
|
|
|
|
|
|
|
|
teal_lua_consistency:
|
|
|
|
|
name: Teal–Lua consistency
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
steps:
|
2024-09-12 13:42:28 +08:00
|
|
|
|
- uses: actions/checkout@v4
|
2024-03-31 08:27:17 +08:00
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
- uses: ConorMacBride/install-package@v1
|
|
|
|
|
with:
|
|
|
|
|
apt: luarocks
|
|
|
|
|
|
|
|
|
|
- name: Install Teal
|
|
|
|
|
run: |
|
|
|
|
|
sudo luarocks install tl
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
./addon/gen.sh
|
|
|
|
|
|
|
|
|
|
- name: Check
|
|
|
|
|
run: |
|
2024-04-01 11:00:48 +08:00
|
|
|
|
git diff --color --exit-code
|