SDL2: when changing fullscreen, resize backing textures if needed #152
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
name: msys2 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
stock: | |
name: Stock | |
runs-on: windows-latest | |
defaults: | |
# Reduce verbosity and always run with msys2 as the default shell. | |
# See https://github.com/marketplace/actions/setup-msys2 . | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Set up prerequisites | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
make | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-ncurses | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cd src | |
make -f Makefile.msys2 | |
sdl: | |
name: SDL2 | |
runs-on: windows-latest | |
defaults: | |
# Reduce verbosity and always run with msys2 as the default shell. | |
# See https://github.com/marketplace/actions/setup-msys2 . | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Set up prerequisites | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
make | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-SDL2 | |
mingw-w64-x86_64-SDL2_ttf | |
mingw-w64-x86_64-SDL2_image | |
mingw-w64-x86_64-SDL2_mixer | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cd src | |
make -f Makefile.msys2.sdl2 SOUND=yes | |
makefile-win: | |
name: Makefile-win | |
runs-on: windows-latest | |
defaults: | |
# Reduce verbosity and always run with msys2 as the default shell. | |
# See https://github.com/marketplace/actions/setup-msys2 . | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Set up prerequisites | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
# The libraries in src/win/lib and src/win/dll are 32-bit. | |
msystem: mingw32 | |
install: >- | |
make | |
mingw-w64-i686-gcc | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cd src | |
make -f Makefile.win MINGW=yes | |
configure-win: | |
runs-on: windows-latest | |
defaults: | |
# Reduce verbosity and always run with msys2 as the default shell. | |
# See https://github.com/marketplace/actions/setup-msys2 . | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Set up prerequisites | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
# The libraries in src/win/lib and src/win/dll are 32-bit. | |
msystem: mingw32 | |
install: >- | |
autoconf-wrapper | |
automake-wrapper | |
make | |
mingw-w64-i686-gcc | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
./autogen.sh | |
./configure --enable-win | |
make install | |
make tests |