Merge pull request #144 from suve/update-CI-runners #259
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
macos-14-sonoma: | |
runs-on: macos-14 | |
steps: | |
- name: Install FPC | |
run: | | |
brew update | |
brew install fpc | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Compile SDL2 unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2.pas | |
verbosity: ewnh | |
- name: Compile SDL2_gfx unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_gfx.pas | |
verbosity: ewnh | |
- name: Compile SDL2_image unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_image.pas | |
verbosity: ewnh | |
- name: Compile SDL2_mixer unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_mixer.pas | |
verbosity: ewnh | |
- name: Compile SDL2_net unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_net.pas | |
verbosity: ewnh | |
- name: Compile SDL2_ttf unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_ttf.pas | |
verbosity: ewnh | |
- name: Install SDL2 library | |
run: brew install sdl2 | |
- name: Get SDL2 library version and path(s) | |
run: | | |
sdl2-config --version | |
sdl2-config --libs | |
- name: Test 1 - Compile Init Test | |
uses: suve/[email protected] | |
with: | |
source: tests/testinit.pas | |
flags: Fl/opt/homebrew/lib | |
verbosity: ewnh | |
- name: Test 1 - Run Init Test | |
run: | | |
./tests/testinit | |
- name: Test 2 - Compile Version Test | |
uses: suve/[email protected] | |
with: | |
source: tests/testversion.pas | |
flags: Fl/opt/homebrew/lib | |
verbosity: ewnh | |
- name: Test 2 - Run Version Test | |
run: | | |
./tests/testversion | |
ubuntu-22-04: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install FPC | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt update | |
sudo apt install fpc | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Compile SDL2 unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2.pas | |
verbosity: ewnh | |
- name: Compile SDL2_gfx unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_gfx.pas | |
verbosity: ewnh | |
- name: Compile SDL2_image unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_image.pas | |
verbosity: ewnh | |
- name: Compile SDL2_mixer unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_mixer.pas | |
verbosity: ewnh | |
- name: Compile SDL2_net unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_net.pas | |
verbosity: ewnh | |
- name: Compile SDL2_ttf unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_ttf.pas | |
verbosity: ewnh | |
- name: Install SDL2 library | |
run: sudo apt-get install libsdl2-dev | |
- name: Test 1 - Compile Init Test | |
uses: suve/[email protected] | |
with: | |
source: tests/testinit.pas | |
verbosity: ewnh | |
- name: Test 1 - Run Init Test | |
run: | | |
mkdir ~/tmp | |
export XDG_RUNTIME_DIR=~/tmp | |
./tests/testinit | |
- name: Test 2 - Compile Version Test | |
uses: suve/[email protected] | |
with: | |
source: tests/testversion.pas | |
verbosity: ewnh | |
- name: Test 2 - Run Version Test | |
run: | | |
./tests/testversion | |
windows-2022: | |
runs-on: windows-2022 | |
steps: | |
- name: Install Lazarus | |
run: | | |
choco install lazarus | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Compile SDL2 unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2.pas | |
verbosity: ewnh | |
- name: Compile SDL2_gfx unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_gfx.pas | |
verbosity: ewnh | |
- name: Compile SDL2_image unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_image.pas | |
verbosity: ewnh | |
- name: Compile SDL2_mixer unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_mixer.pas | |
verbosity: ewnh | |
- name: Compile SDL2_net unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_net.pas | |
verbosity: ewnh | |
- name: Compile SDL2_ttf unit | |
uses: suve/[email protected] | |
with: | |
source: units/sdl2_ttf.pas | |
verbosity: ewnh | |
- name: Test 1 - Compile Init Test | |
uses: suve/[email protected] | |
with: | |
source: tests/testinit.pas | |
flags: Flunits | |
verbosity: ewnh | |
# !!! Since no SDL2.DLL is available via chocolatey, the run will fail. | |
# TODO: Find solution to install SDL2 binary. | |
# - name: Test 1 - Run Init Test | |
# run: | | |
# ./tests/testinit.exe |