Skip to content

Commit 9305239

Browse files
committed
build: add ScriptX prebuilt package
1 parent 6615a6f commit 9305239

File tree

529 files changed

+818
-108758
lines changed

Some content is hidden

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

529 files changed

+818
-108758
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-38
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ body:
4646

4747
- type: input
4848
attributes:
49-
label: Version
50-
description: The version of the plugin you are using. (e.g. 1.0.0)
49+
label: LegacyScriptEngine Version
50+
description: The version of LegacyScriptEngine you are using. (e.g. 1.0.0)
5151

5252
- type: textarea
5353
attributes:

.github/ISSUE_TEMPLATE/feature_request.md

-24
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

+1-1
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 [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html)
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

+27-13
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,46 @@ on:
55

66
jobs:
77
build:
8+
strategy:
9+
matrix:
10+
backend:
11+
- lua
12+
- nodejs
13+
- python310
14+
- quickjs
815
runs-on: windows-latest
916
steps:
1017
- uses: actions/checkout@v4
1118

12-
- uses: actions/cache@v3
13-
with:
14-
path: |
15-
~/AppData/Local/.xmake
16-
.xmake
17-
key: xmake-legacyscriptengine-windows-x64-${{ github.sha }}
18-
restore-keys: |
19-
xmake-legacyscriptengine-windows-x64-
20-
2119
- uses: xmake-io/github-action-setup-xmake@v1
22-
20+
2321
- run: |
2422
xmake repo -u
2523
2624
- run: |
27-
xmake f -a x64 -m release -p windows -v -y
25+
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }}
2826
2927
- run: |
3028
xmake -w -y
3129
3230
- uses: actions/upload-artifact@v3
3331
with:
34-
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
32+
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
3533
path: |
36-
bin/
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

+25-17
Original file line numberDiff line numberDiff line change
@@ -5,61 +5,69 @@ on:
55

66
jobs:
77
build:
8+
strategy:
9+
matrix:
10+
backend:
11+
- lua
12+
- nodejs
13+
- python310
14+
- quickjs
815
runs-on: windows-latest
916
steps:
1017
- uses: actions/checkout@v4
1118

1219
- uses: xmake-io/github-action-setup-xmake@v1
13-
20+
1421
- run: |
1522
xmake repo -u
1623
1724
- run: |
18-
xmake f -a x64 -m release -p windows -v -y
25+
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }}
1926
2027
- run: |
2128
xmake -w -y
2229
2330
- uses: actions/upload-artifact@v3
2431
with:
25-
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
32+
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
2633
path: |
27-
bin/
34+
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.dll
2835
2936
upload-to-release:
3037
needs:
3138
- build
3239
permissions:
3340
contents: write
3441
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
backend:
45+
- lua
46+
- nodejs
47+
- python310
48+
- quickjs
3549
steps:
3650
- uses: actions/checkout@v4
3751

3852
- uses: actions/download-artifact@v3
3953
with:
40-
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
41-
path: release/
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 }}/
4259
4360
- run: |
4461
cp LICENSE README.md release/
4562
4663
- name: Archive release
4764
run: |
4865
cd release
49-
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
66+
zip -r ../legacy-script-engine-${{ matrix.backend }}-windows-x64.zip *
5067
cd ..
5168
52-
- name: Calculate SHA256
53-
id: calculate-sha256
54-
run: |
55-
echo release=$(sha256sum ${{ github.event.repository.name }}-windows-x64.zip | awk '{print $1}') >> $GITHUB_OUTPUT
56-
5769
- uses: softprops/action-gh-release@v1
5870
with:
5971
append_body: true
60-
body: |
61-
| File | SHA256 |
62-
| ---- | ------ |
63-
| ${{ github.event.repository.name }}-windows-x64.zip | ${{ steps.calculate-sha256.outputs.release }} |
6472
files: |
65-
${{ github.event.repository.name }}-windows-x64.zip
73+
legacy-script-engine-${{ matrix.backend }}-windows-x64.zip

0 commit comments

Comments
 (0)