Conversation
|
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:
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)" | ||
| } |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.