Skip to content

Commit 125a6cf

Browse files
committed
Merge branch 'master' into bug/2977-lua-autodoc-includes-global-table
2 parents 6dc200f + fa2c778 commit 125a6cf

File tree

104 files changed

+119542
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+119542
-356
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -24,59 +24,22 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27-
- { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
28-
- { os: ubuntu-22.04, target: linux, platform: linux-x64 }
29-
- { os: ubuntu-22.04, target: linux, platform: linux-arm64 }
30-
- { os: macos-latest, target: darwin, platform: darwin-x64 }
31-
- { os: macos-latest, target: darwin, platform: darwin-arm64 }
32-
- { os: windows-latest, target: windows, platform: win32-ia32 }
33-
- { os: windows-latest, target: windows, platform: win32-x64 }
27+
- { os: ubuntu-22.04, target: linux, platform: linux-x64 }
28+
- { os: ubuntu-24.04-arm, target: linux, platform: linux-arm64 }
29+
- { os: macos-latest, target: darwin, platform: darwin-x64 }
30+
- { os: macos-latest, target: darwin, platform: darwin-arm64 }
31+
- { os: windows-latest, target: windows, platform: win32-ia32 }
32+
- { os: windows-latest, target: windows, platform: win32-x64 }
3433
runs-on: ${{ matrix.os }}
35-
container:
36-
image: ${{ matrix.container }}
3734
steps:
38-
- name: Install aarch64-linux-gnu
39-
if: ${{ matrix.platform == 'linux-arm64' && matrix.libc != 'musl' }}
40-
run: |
41-
sudo apt-get update
42-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
43-
44-
- name: Prepare container for musl
45-
if: ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
46-
run: |
47-
apk update
48-
apk add git ninja bash build-base nodejs linux-headers
49-
50-
- name: Prepare for Linux
51-
if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
52-
run: |
53-
sudo apt update
54-
sudo apt install ninja-build
55-
5635
- uses: actions/checkout@v4
5736
with:
5837
submodules: recursive
5938

60-
- name: Build for Windows
61-
if: ${{ matrix.target == 'windows' }}
62-
run: .\make.bat ${{ matrix.platform }}
39+
- uses: actboy168/setup-luamake@master
6340

64-
- name: Build for Linux
65-
if: ${{ matrix.target == 'linux' }}
66-
run: |
67-
./make.sh ${{ matrix.platform }}
68-
69-
- name: Build for macOS
70-
if: ${{ matrix.target == 'darwin' }}
71-
run: |
72-
brew install ninja
73-
./make.sh ${{ matrix.platform }}
74-
75-
- name: Build for x64 glibc
76-
if: ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}
77-
run: |
78-
docker build -t ubuntu-18.04 .
79-
docker run --rm -v $(pwd):$(pwd) -w $(pwd) ubuntu-18.04 bash -c './make.sh'
41+
- name: Build
42+
run: luamake -platform ${{ matrix.platform }}
8043

8144
- name: Setting up workflow variables
8245
id: vars
@@ -98,9 +61,6 @@ jobs:
9861
9962
# Package name w/ version
10063
PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
101-
if [[ "${{ matrix.libc }}" = musl ]]; then
102-
PKG_BASENAME="${PKG_BASENAME}-${{matrix.libc}}"
103-
fi
10464
10565
# Full name of the tarball asset
10666
PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"

.github/workflows/test.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,8 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17-
- name: Build for Windows
18-
if: ${{ matrix.target == 'windows' }}
19-
run: .\make.bat
20-
- name: Build for Linux
21-
if: ${{ matrix.target == 'linux' }}
22-
run: |
23-
sudo apt update
24-
sudo apt install ninja-build
25-
./make.sh
26-
- name: Build for macOS
27-
if: ${{ matrix.target == 'darwin' }}
28-
run: |
29-
brew install ninja
30-
./make.sh
17+
18+
- uses: actboy168/setup-luamake@master
19+
20+
- name: Build
21+
run: luamake -platform ${{ matrix.platform }}

.luarc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"script/?.lua",
3030
"script/?/init.lua",
3131
"test/?.lua",
32-
"test/?/init.lua",
33-
"script/meta/?.lua"
32+
"test/?/init.lua"
3433
],
3534
"pathStrict": true
3635
},

.pre-commit-hooks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- id: lua-language-server-check
3+
language: lua
4+
name: lua language server check
5+
description: >
6+
use lua language server to check lua files
7+
entry: lua-language-server
8+
types:
9+
- lua
10+
args:
11+
- --check
12+
- .

.vscode/c_cpp_properties.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [
9+
"_DEBUG",
10+
"UNICODE",
11+
"_UNICODE"
12+
],
13+
"windowsSdkVersion": "10.0.26100.0",
14+
"compilerPath": "cl.exe",
15+
"cStandard": "c17",
16+
"cppStandard": "c++17",
17+
"intelliSenseMode": "windows-msvc-x64"
18+
}
19+
],
20+
"version": 4
21+
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "lua",
2727
"request": "attach",
2828
"stopOnEntry": false,
29-
"address": "127.0.0.1:11413",
29+
"address": "127.0.0.1:11414",
3030
"outputCapture": [
3131
],
3232
"sourceFormat": "string",

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
//"--shownode",
99
//"--lazy",
1010
],
11+
"files.associations": {
12+
"thread": "cpp"
13+
},
1114
}

3rd/bee.lua

Submodule bee.lua updated 286 files

3rd/luamake

0 commit comments

Comments
 (0)