Skip to content

Commit 35f3cd0

Browse files
committed
Merge branch 'develop'
2 parents 60874d3 + 6254d46 commit 35f3cd0

File tree

157 files changed

+35314
-232
lines changed

Some content is hidden

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

157 files changed

+35314
-232
lines changed

.clangd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Diagnostics:
2+
Suppress:
3+
- "-Wmicrosoft-enum-forward-reference"
4+
- "-Wc++11-narrowing"
5+
- "-Wc++2b-extensions"
6+
- "-Wmicrosoft-cast"
7+
CompileFlags:
8+
Add:
9+
- "-ferror-limit=0"
10+
- "-D__FUNCTION__=\"dummy\""

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
attributes:
15+
label: To Reproduce
16+
description: Steps to reproduce the behavior.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Expected behavior
23+
description: A clear and concise description of what you expected to happen.
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
attributes:
29+
label: Screenshots
30+
description: If applicable, add screenshots to help explain your problem.
31+
32+
- type: input
33+
attributes:
34+
label: Platform
35+
description: The platform you are using. (e.g. Windows 10)
36+
37+
- type: input
38+
attributes:
39+
label: BDS Version
40+
description: The version of BDS you are using. (e.g. 1.20.32.1)
41+
42+
- type: input
43+
attributes:
44+
label: LeviLamina Version
45+
description: The version of LeviLamina you are using. (e.g. 1.0.0)
46+
47+
- type: input
48+
attributes:
49+
label: LegacyScriptEngine Version
50+
description: The version of LegacyScriptEngine you are using. (e.g. 1.0.0)
51+
52+
- type: textarea
53+
attributes:
54+
label: Additional context
55+
description: Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Is your feature request related to a problem? Please describe.
9+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Describe alternatives you've considered
23+
description: A clear and concise description of any alternative solutions or features you've considered.
24+
25+
- type: textarea
26+
attributes:
27+
label: Additional context
28+
description: Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Thank you for your contribution to the repository.
1212
Before submitting this PR, please make sure:
1313

1414
- [ ] Your code builds clean without any errors or warnings
15-
- [ ] Your code follows the code style of this repository (see the wiki)
15+
- [ ] Your code follows [LeviLamina C++ Style Guide](https://github.com/LiteLDev/LeviLamina/wiki/CPP-Style-Guide)
1616
- [ ] You have tested all functions
1717
- [ ] You have not used code without license
1818
- [ ] You have added statement for third-party code

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on:
2+
pull_request:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
strategy:
9+
matrix:
10+
backend:
11+
- lua
12+
- nodejs
13+
- python310
14+
- quickjs
15+
runs-on: windows-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: xmake-io/github-action-setup-xmake@v1
20+
21+
- run: |
22+
xmake repo -u
23+
24+
- run: |
25+
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }}
26+
27+
- run: |
28+
xmake -w -y
29+
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
33+
path: |
34+
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.dll
35+
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.pdb
36+
37+
check-style:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- uses: actions/setup-node@v3
43+
with:
44+
node-version: 18
45+
46+
- run: |
47+
npm install [email protected]
48+
49+
- run: |
50+
npx clang-format --dry-run --Werror $(find . -type f -name '*.cpp' -o -name '*.h')

.github/workflows/release.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
jobs:
7+
build:
8+
strategy:
9+
matrix:
10+
backend:
11+
- lua
12+
- nodejs
13+
- python310
14+
- quickjs
15+
runs-on: windows-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: xmake-io/github-action-setup-xmake@v1
20+
21+
- run: |
22+
xmake repo -u
23+
24+
- run: |
25+
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }}
26+
27+
- run: |
28+
xmake -w -y
29+
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
33+
path: |
34+
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.dll
35+
36+
upload-to-release:
37+
needs:
38+
- build
39+
permissions:
40+
contents: write
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
backend:
45+
- lua
46+
- nodejs
47+
- python310
48+
- quickjs
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- uses: actions/download-artifact@v3
53+
with:
54+
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
55+
path: release/legacy-script-engine-${{ matrix.backend }}/
56+
57+
- run: |
58+
cp -r assets/${{ matrix.backend }}/* release/legacy-script-engine-${{ matrix.backend }}/
59+
60+
- run: |
61+
cp LICENSE README.md release/
62+
63+
- name: Archive release
64+
run: |
65+
cd release
66+
zip -r ../legacy-script-engine-${{ matrix.backend }}-windows-x64.zip *
67+
cd ..
68+
69+
- uses: softprops/action-gh-release@v1
70+
with:
71+
append_body: true
72+
files: |
73+
legacy-script-engine-${{ matrix.backend }}-windows-x64.zip

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ _deps
5050
## Others
5151
.idea
5252
.vscode
53-
54-
build
5553
docs
5654
lib
55+
56+
# Xmake cache
57+
.xmake/
58+
build/
59+
.cache/
60+
61+
# MacOS Cache
62+
.DS_Store

0 commit comments

Comments
 (0)