-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from LiteLDev/develop
Release
- Loading branch information
Showing
410 changed files
with
59,084 additions
and
33,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: BlockIndent | ||
AlignArrayOfStructures: Left | ||
AlignConsecutiveDeclarations: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignConsecutiveAssignments: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: true | ||
PadOperators: true | ||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowAllArgumentsOnNextLine: false | ||
AlignOperands: AlignAfterOperator | ||
AlignConsecutiveBitFields: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: AllIfsAndElse | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakTemplateDeclarations: 'Yes' | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBraces: Custom | ||
BreakBeforeBinaryOperators: NonAssignment | ||
ColumnLimit: 120 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ConstructorInitializerIndentWidth: 0 | ||
IndentWidth: 4 | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 1 | ||
PackConstructorInitializers: CurrentLine | ||
PointerAlignment: Left | ||
TabWidth: 4 | ||
UseTab: Never | ||
SortIncludes: CaseSensitive | ||
IncludeBlocks: Regroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
Checks: ' | ||
bugprone-*, | ||
clang-analyzer-*, | ||
concurrency-*, | ||
cppcoreguidelines-*, | ||
llvm-*, | ||
misc-*, | ||
modernize-*, | ||
performance-*, | ||
portability-*, | ||
readability-* | ||
' | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Diagnostics: | ||
Suppress: | ||
Suppress: | ||
- "-Wmicrosoft-enum-forward-reference" | ||
- "-Wc++11-narrowing" | ||
- "-Wc++2b-extensions" | ||
- "-Wmicrosoft-cast" | ||
CompileFlags: | ||
Add: | ||
Add: | ||
- "-ferror-limit=0" | ||
- "-D__FUNCTION__=\"dummy\"" | ||
- '-D__FUNCTION__="dummy"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,26 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
backend: | ||
# - libnode | ||
- lua | ||
- nodejs | ||
- python310 | ||
# - python310 | ||
- quickjs | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: xmake-io/github-action-setup-xmake@v1 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/AppData/Local/.xmake | ||
key: xmake-${{ hashFiles('xmake.lua') }} | ||
restore-keys: | | ||
xmake- | ||
- run: | | ||
xmake repo -u | ||
|
@@ -27,24 +35,21 @@ jobs: | |
- run: | | ||
xmake -w -y | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }} | ||
path: | | ||
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.dll | ||
build/windows/x64/release/legacy-script-engine-${{ matrix.backend }}.pdb | ||
bin/ | ||
check-style: | ||
runs-on: ubuntu-latest | ||
clang-format: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- run: | | ||
npm install [email protected] | ||
choco install llvm -y --version=17.0.6 | ||
- run: | | ||
npx clang-format --dry-run --Werror $(find . -type f -name '*.cpp' -o -name '*.h') | ||
- name: clang-format | ||
run: | | ||
Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName } | ||
Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
push: | ||
paths: | ||
- .github/workflows/build_docs.yml | ||
- docs/** | ||
- mkdocs.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: | | ||
pip install -r requirements.txt | ||
- run: | | ||
mkdocs build | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: site/ | ||
|
||
deploy: | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
needs: | ||
- build | ||
permissions: | ||
id-token: write | ||
pages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/deploy-pages@v4 | ||
|
Oops, something went wrong.