Skip to content

#75 WIP: xboxへの書き出しに対応#76

Merged
ienaga merged 1 commit into
mainfrom
develop
Jul 2, 2026
Merged

#75 WIP: xboxへの書き出しに対応#76
ienaga merged 1 commit into
mainfrom
develop

Conversation

@ienaga

@ienaga ienaga commented Jul 2, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment on lines +30 to +43
name: RasterCore tests + V8 syntax check (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch V8 headers (${{ env.V8_TAG }})
run: |
git clone --depth 1 --branch "$V8_TAG" --filter=blob:none --sparse \
https://github.com/v8/v8.git v8_headers
cd v8_headers && git sparse-checkout set include
- name: Run raster tests + ASan + V8 syntax check
working-directory: templates/xbox
run: tests/check_local.sh "$GITHUB_WORKSPACE/v8_headers/include"

windows-tests:
Comment on lines +44 to +73
name: RasterCore + Windows platform tests (MSVC)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1

- name: Build & run RasterCore tests
shell: cmd
working-directory: templates/xbox
run: |
cl /nologo /std:c++17 /EHsc /W3 /O1 tests\raster_test.cpp /Fe:raster_test.exe
if errorlevel 1 exit /b 1
raster_test.exe

- name: Build & run Windows platform tests (WIC/DirectWrite/MF/XAudio2)
shell: cmd
working-directory: templates/xbox
run: |
cl /nologo /std:c++17 /EHsc /W3 /DNOMINMAX /Isrc ^
tests\windows_platform_test.cpp ^
src\platform\WicDecoder.cpp ^
src\platform\TextRasterizer.cpp ^
src\platform\AudioEngine.cpp ^
/Fe:platform_test.exe ^
ole32.lib uuid.lib windowscodecs.lib d2d1.lib dwrite.lib ^
mfplat.lib mfreadwrite.lib mfuuid.lib xaudio2.lib shlwapi.lib
if errorlevel 1 exit /b 1
platform_test.exe

v8-syntax-check:
Comment on lines +74 to +138
name: V8-dependent sources compile check (MSVC)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1

- name: Fetch V8 headers (${{ env.V8_TAG }})
shell: pwsh
run: |
git clone --depth 1 --branch $env:V8_TAG --filter=blob:none --sparse `
https://github.com/v8/v8.git v8_headers
Push-Location v8_headers
git sparse-checkout set include
Pop-Location

- name: Compile-check (no link)
shell: pwsh
working-directory: templates/xbox
run: |
$v8inc = Join-Path $env:GITHUB_WORKSPACE "v8_headers/include"
# Dawn 依存 (webgpu_cpp.h が Dawn ビルドで生成されるため CI では検証不可):
# src/main.cpp, src/gpu/DawnContext.cpp, src/bindings/webgpu/WebGPU.cpp
# GDK 依存 (GameInput.h):
# src/platform/GamepadManager.cpp (下の別ステップで warn-only)
$files = @(
"src/AssetLoader.cpp",
"src/EventLoop.cpp",
"src/v8/V8Runtime.cpp",
"src/worker/WorkerRuntime.cpp",
"src/bindings/Audio.cpp",
"src/bindings/Canvas.cpp",
"src/bindings/Canvas2D.cpp",
"src/bindings/Console.cpp",
"src/bindings/DomShims.cpp",
"src/bindings/EventTarget.cpp",
"src/bindings/Fetch.cpp",
"src/bindings/Gamepad.cpp",
"src/bindings/Image.cpp",
"src/bindings/Network.cpp",
"src/bindings/Timers.cpp",
"src/bindings/Video.cpp",
"src/platform/AudioEngine.cpp",
"src/platform/WicDecoder.cpp",
"src/platform/TextRasterizer.cpp"
)
# CMakeLists.txt と同じ定義でコンパイルのみ実行 (/c)。
cl /c /nologo /std:c++20 /Zc:__cplusplus /EHsc /W3 `
/DNOMINMAX /DWIN32_LEAN_AND_MEAN /DUNICODE /D_UNICODE `
/DV8_COMPRESS_POINTERS /DV8_ENABLE_SANDBOX `
/Isrc /I"$v8inc" `
@files
if ($LASTEXITCODE -ne 0) { exit 1 }
Write-Host "OK: all V8-dependent sources compiled"

- name: Compile-check GamepadManager (GameInput.h — warn only)
shell: pwsh
working-directory: templates/xbox
continue-on-error: true
run: |
# GameInput.h は GDK 付属。Windows SDK に含まれる環境でのみ検証できる。
cl /c /nologo /std:c++20 /EHsc /W3 /DNOMINMAX /DWIN32_LEAN_AND_MEAN `
/Isrc src/platform/GamepadManager.cpp
if ($LASTEXITCODE -ne 0) {
Write-Warning "GameInput.h not available in this SDK (expected without GDK)"
}
@ienaga ienaga merged commit 2db0fdc into main Jul 2, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants