Map pad delete to ALLEGRO_KEY_PAD_DELETE and the weird ISO section ke… #168
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: Tests | |
on: [push, pull_request] | |
jobs: | |
windows_test: | |
name: Windows (MSYS2) tests | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- uses: msys2/setup-msys2@v2 | |
- name: Setup | |
shell: msys2 {0} | |
run: | | |
pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake make mingw-w64-x86_64-physfs mingw-w64-x86_64-freetype mingw-w64-x86_64-libvorbis mingw-w64-x86_64-flac mingw-w64-x86_64-dumb mingw-w64-x86_64-libtheora mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-opusfile mingw-w64-x86_64-enet mingw-w64-x86_64-libwebp | |
mkdir build | |
- name: Configure | |
shell: msys2 {0} | |
run: | | |
cd build | |
cmake .. -G"MSYS Makefiles" | |
- name: Build | |
shell: msys2 {0} | |
run: | | |
cd build | |
make -j2 | |
osx_test: | |
name: OSX tests | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Setup | |
run: | | |
brew update && brew install opusfile libvorbis freetype flac physfs dumb theora enet | |
mkdir build | |
- name: Configure | |
run: | | |
cd build | |
cmake .. -DWANT_SHADERS_GL=$WANT_SHADERS_GL -G Xcode | |
- name: Build | |
run: | | |
cd build | |
xcodebuild | |
ubuntu_test: | |
name: Ubuntu tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Setup | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xvfb libvorbis-dev libtheora-dev libwebp-dev libphysfs-dev libopusfile-dev libdumb1-dev libflac-dev libpulse-dev libgtk-3-dev pandoc libcurl4-nss-dev libenet-dev pulseaudio libasound2-dev libopenal-dev libgl1-mesa-dev libglu-dev; | |
mkdir build | |
cd build | |
. ../tests/grab_bitmap_suites.sh | |
- name: Configure | |
run: | | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWANT_SHADERS_GL=on -DWANT_CURL_EXAMPLE=on -DWANT_PYTHON_WRAPPER=1 | |
- name: Build | |
run: | | |
cd build | |
make -j2 | |
- name: Run test_driver | |
run: | | |
cd build | |
find ../tests -name '*.ini' | grep -v 'compressed' | xargs xvfb-run tests/test_driver --save_on_failure --xvfb | tee /tmp/test_out || true | |
mkdir -p test_outputs | |
mv *.png test_outputs | |
grep -q 'failed tests: 0' /tmp/test_out | |
- name: Run other tests | |
run: | | |
cd build | |
make run_standalone_tests | |
- name: Upload artifacts | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bitmaps | |
path: build/test_outputs | |
- name: Run install_test | |
run: | | |
cd build | |
sudo make install | |
sudo ldconfig | |
gcc ../misc/install_test.c -o install_test $(pkg-config --cflags --libs allegro_image-debug-5 allegro_ttf-debug-5 allegro_acodec-debug-5 allegro_dialog-debug-5 allegro_primitives-debug-5 allegro_video-debug-5) | |
pulseaudio -D | |
xvfb-run ./install_test | |
- name: Test Python wrapper | |
run: | | |
cd build | |
python python/allegro.py |