Skip to content

Commit

Permalink
fix CI: ignore x86 build, add missing SDL2 api declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Ji committed Nov 17, 2024
1 parent 11dbd5f commit 7da246d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 209 deletions.
201 changes: 0 additions & 201 deletions .github/workflows/main.bak

This file was deleted.

8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ jobs:
fail-fast: false
matrix:
host: [ubuntu-latest, macos-latest]
target: [x86-windows-gnu, x86_64-windows-gnu]
runs-on: ${{matrix.host}}
steps:
- name: Checkout repository
Expand Down Expand Up @@ -163,11 +162,6 @@ jobs:
path: .build_config/sdl.json
contents: |
{
"x86-windows-gnu": {
"include": "SDL2-2.30.9/i686-w64-mingw32/include",
"libs": "SDL2-2.30.9/i686-w64-mingw32/lib",
"bin": "SDL2-2.30.9/i686-w64-mingw32/bin"
},
"x86_64-windows-gnu": {
"include": "SDL2-2.30.9/x86_64-w64-mingw32/include",
"libs": "SDL2-2.30.9/x86_64-w64-mingw32/lib",
Expand All @@ -176,7 +170,7 @@ jobs:
}
write-mode: overwrite
- name: Build examples
run: zig build -Dtarget=${{matrix.target}} examples
run: zig build -Dtarget=x86_64-windows-gnu examples

build-cross-linux:
strategy:
Expand Down
5 changes: 4 additions & 1 deletion stubs/libSDL2.def
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ SDL_HasColorKey
SDL_HasEvent
SDL_HasEvents
SDL_HasIntersection
SDL_HasIntersectionF
SDL_HasMMX
SDL_HasNEON
SDL_HasRDTSC
Expand All @@ -331,7 +332,9 @@ SDL_HideWindow
SDL_Init
SDL_InitSubSystem
SDL_IntersectRect
SDL_IntersectFRect
SDL_IntersectRectAndLine
SDL_IntersectFRectAndLine
SDL_IsGameController
SDL_IsScreenKeyboardShown
SDL_IsScreenSaverEnabled
Expand Down Expand Up @@ -795,4 +798,4 @@ SDL_wcslcpy
SDL_wcslen
SDL_wcsncasecmp
SDL_wcsncmp
SDL_wcsstr
SDL_wcsstr

0 comments on commit 7da246d

Please sign in to comment.