|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ master ] |
| 6 | + pull_request: |
| 7 | + branches: [ master ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + macos-11: |
| 11 | + runs-on: macos-11 |
| 12 | + steps: |
| 13 | + - name: Install FPC |
| 14 | + run: | |
| 15 | + brew update |
| 16 | + brew install fpc |
| 17 | + - name: Checkout code |
| 18 | + uses: actions/checkout@v2 |
| 19 | + - name: Compile SDL2 unit |
| 20 | + run: fpc sdl2.pas |
| 21 | + - name: Compile SDL2_gfx unit |
| 22 | + run: fpc sdl2_gfx.pas |
| 23 | + - name: Compile SDL2_image unit |
| 24 | + run: fpc sdl2_image.pas |
| 25 | + - name: Compile SDL2_mixer unit |
| 26 | + run: fpc sdl2_mixer.pas |
| 27 | + - name: Compile SDL2_net unit |
| 28 | + run: fpc sdl2_net.pas |
| 29 | + - name: Compile SDL2_ttf unit |
| 30 | + run: fpc sdl2_ttf.pas |
| 31 | + ubuntu-20-04: |
| 32 | + runs-on: ubuntu-20.04 |
| 33 | + steps: |
| 34 | + - name: Install FPC |
| 35 | + run: | |
| 36 | + export DEBIAN_FRONTEND=noninteractive |
| 37 | + sudo apt update |
| 38 | + sudo apt install fpc |
| 39 | + - name: Checkout code |
| 40 | + uses: actions/checkout@v2 |
| 41 | + - name: Compile SDL2 unit |
| 42 | + run: fpc sdl2.pas |
| 43 | + - name: Compile SDL2_gfx unit |
| 44 | + run: fpc sdl2_gfx.pas |
| 45 | + - name: Compile SDL2_image unit |
| 46 | + run: fpc sdl2_image.pas |
| 47 | + - name: Compile SDL2_mixer unit |
| 48 | + run: fpc sdl2_mixer.pas |
| 49 | + - name: Compile SDL2_net unit |
| 50 | + run: fpc sdl2_net.pas |
| 51 | + - name: Compile SDL2_ttf unit |
| 52 | + run: fpc sdl2_ttf.pas |
| 53 | + windows-2022: |
| 54 | + runs-on: windows-2022 |
| 55 | + steps: |
| 56 | + - name: Install Lazarus |
| 57 | + run: | |
| 58 | + choco install lazarus |
| 59 | + - name: Checkout code |
| 60 | + uses: actions/checkout@v2 |
| 61 | + - name: Compile SDL2 unit |
| 62 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2.pas |
| 63 | + - name: Compile SDL2_gfx unit |
| 64 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_gfx.pas |
| 65 | + - name: Compile SDL2_image unit |
| 66 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_image.pas |
| 67 | + - name: Compile SDL2_mixer unit |
| 68 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_mixer.pas |
| 69 | + - name: Compile SDL2_net unit |
| 70 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_net.pas |
| 71 | + - name: Compile SDL2_ttf unit |
| 72 | + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_ttf.pas |
| 73 | + |
0 commit comments