mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-01 03:25:31 +02:00
Merge branch 'main' into windows-pty
This commit is contained in:
commit
e95e2a8327
2 changed files with 15 additions and 6 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
@ -2,6 +2,7 @@ name: "Build and Test"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
pull_request:
|
||||||
schedule: # Build and test daily.
|
schedule: # Build and test daily.
|
||||||
- cron: 0 11 * * *
|
- cron: 0 11 * * *
|
||||||
|
|
||||||
|
@ -135,6 +136,10 @@ jobs:
|
||||||
BITS: ${{ matrix.arch == 'x86_64' && 64 || 32 }}
|
BITS: ${{ matrix.arch == 'x86_64' && 64 || 32 }}
|
||||||
run: |
|
run: |
|
||||||
cd addons/godot_xterm/native/thirdparty/libuv
|
cd addons/godot_xterm/native/thirdparty/libuv
|
||||||
|
# Clean only CMake configuration files to avoid stale cache issues
|
||||||
|
mkdir -p build
|
||||||
|
rm -f build/CMakeCache.txt
|
||||||
|
rm -rf build/CMakeFiles
|
||||||
args="-DCMAKE_BUILD_TYPE=$TARGET -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
|
args="-DCMAKE_BUILD_TYPE=$TARGET -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
|
||||||
-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
|
-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
|
||||||
if [ "$TARGET" == "release" ]; then
|
if [ "$TARGET" == "release" ]; then
|
||||||
|
@ -145,7 +150,6 @@ jobs:
|
||||||
if [ "$BITS" -eq 32 -a "$PLATFORM" == "windows" ]; then
|
if [ "$BITS" -eq 32 -a "$PLATFORM" == "windows" ]; then
|
||||||
cmake -G "Visual Studio 17 2022" -A Win32 -S $(pwd) -B "build" $args
|
cmake -G "Visual Studio 17 2022" -A Win32 -S $(pwd) -B "build" $args
|
||||||
else
|
else
|
||||||
mkdir build || true
|
|
||||||
cd build
|
cd build
|
||||||
if [ "$BITS" -eq 32 ]; then args="$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32"; fi
|
if [ "$BITS" -eq 32 ]; then args="$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32"; fi
|
||||||
cmake .. $args
|
cmake .. $args
|
||||||
|
@ -209,10 +213,12 @@ jobs:
|
||||||
- name: Export for web
|
- name: Export for web
|
||||||
shell: bash
|
shell: bash
|
||||||
run: godot --no-window --export-release Web
|
run: godot --no-window --export-release Web
|
||||||
- name: NPM cache
|
- name: Setup Node.js
|
||||||
uses: c-hive/gha-npm-cache@v1
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
directory: test/web
|
node-version: "20"
|
||||||
|
cache: "npm"
|
||||||
|
cache-dependency-path: test/web/package-lock.json
|
||||||
- name: Smoke test Web export
|
- name: Smoke test Web export
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: test/web
|
working-directory: test/web
|
||||||
|
@ -350,6 +356,7 @@ jobs:
|
||||||
run: godot --editor --headless --quit-after 100 || true
|
run: godot --editor --headless --quit-after 100 || true
|
||||||
- name: Wait for build
|
- name: Wait for build
|
||||||
uses: fountainhead/action-wait-for-check@v1.2.0
|
uses: fountainhead/action-wait-for-check@v1.2.0
|
||||||
|
id: wait-for-build
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
checkName: "Build (linux, x86_64, release) #${{ github.run_number }}"
|
checkName: "Build (linux, x86_64, release) #${{ github.run_number }}"
|
||||||
|
@ -360,8 +367,10 @@ jobs:
|
||||||
path: addons/godot_xterm/native/bin
|
path: addons/godot_xterm/native/bin
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
|
if: steps.wait-for-build.outputs.conclusion == 'success'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: just bench ${{matrix.benchmark}}
|
run: just bench ${{matrix.benchmark}}
|
||||||
|
timeout-minutes: 2
|
||||||
- name: Upload results
|
- name: Upload results
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -400,7 +409,7 @@ jobs:
|
||||||
tool: "customSmallerIsBetter"
|
tool: "customSmallerIsBetter"
|
||||||
output-file-path: benchmark/results/all.json
|
output-file-path: benchmark/results/all.json
|
||||||
external-data-json-path: ./cache/benchmark-data.json
|
external-data-json-path: ./cache/benchmark-data.json
|
||||||
alert-threshold: "20%"
|
alert-threshold: "120%"
|
||||||
fail-threshold: "200%"
|
fail-threshold: "200%"
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
comment-on-alert: true
|
comment-on-alert: true
|
||||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -12,4 +12,4 @@
|
||||||
url = https://github.com/microsoft/node-pty
|
url = https://github.com/microsoft/node-pty
|
||||||
[submodule "benchmark/vtebench"]
|
[submodule "benchmark/vtebench"]
|
||||||
path = benchmark/vtebench
|
path = benchmark/vtebench
|
||||||
url = git@github.com:alacritty/vtebench
|
url = https://github.com/alacritty/vtebench
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue