|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main ] |
| 6 | + pull_request: |
| 7 | + branches: [ main ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + macos-15: |
| 11 | + runs-on: macos-15 |
| 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 SDL3 unit |
| 20 | + |
| 21 | + with: |
| 22 | + source: units/SDL3.pas |
| 23 | + verbosity: ewnh |
| 24 | + - name: Compile SDL3_image unit |
| 25 | + |
| 26 | + with: |
| 27 | + source: units/SDL3_image.pas |
| 28 | + verbosity: ewnh |
| 29 | + - name: Compile SDL3_ttf unit |
| 30 | + |
| 31 | + with: |
| 32 | + source: units/SDL3_ttf.pas |
| 33 | + verbosity: ewnh |
| 34 | + - name: Compile SDL3_textengine unit |
| 35 | + |
| 36 | + with: |
| 37 | + source: units/SDL3_textengine.pas |
| 38 | + verbosity: ewnh |
| 39 | + |
| 40 | + ubuntu-24-04: |
| 41 | + runs-on: ubuntu-24.04 |
| 42 | + steps: |
| 43 | + - name: Install FPC |
| 44 | + run: | |
| 45 | + export DEBIAN_FRONTEND=noninteractive |
| 46 | + sudo apt update |
| 47 | + sudo apt install -y fpc |
| 48 | + - name: Checkout code |
| 49 | + uses: actions/checkout@v2 |
| 50 | + - name: Compile SDL3 unit |
| 51 | + |
| 52 | + with: |
| 53 | + source: units/SDL3.pas |
| 54 | + verbosity: ewnh |
| 55 | + - name: Compile SDL3_image unit |
| 56 | + |
| 57 | + with: |
| 58 | + source: units/SDL3_image.pas |
| 59 | + verbosity: ewnh |
| 60 | + - name: Compile SDL3_ttf unit |
| 61 | + |
| 62 | + with: |
| 63 | + source: units/SDL3_ttf.pas |
| 64 | + verbosity: ewnh |
| 65 | + - name: Compile SDL3_textengine unit |
| 66 | + |
| 67 | + with: |
| 68 | + source: units/SDL3_textengine.pas |
| 69 | + verbosity: ewnh |
| 70 | + |
| 71 | + windows-2025: |
| 72 | + runs-on: windows-2025 |
| 73 | + steps: |
| 74 | + - name: Install Lazarus |
| 75 | + run: | |
| 76 | + choco install lazarus |
| 77 | + - name: Checkout code |
| 78 | + uses: actions/checkout@v2 |
| 79 | + - name: Compile SDL3 unit |
| 80 | + |
| 81 | + with: |
| 82 | + source: units/SDL3.pas |
| 83 | + verbosity: ewnh |
| 84 | + - name: Compile SDL3_image unit |
| 85 | + |
| 86 | + with: |
| 87 | + source: units/SDL3_image.pas |
| 88 | + verbosity: ewnh |
| 89 | + - name: Compile SDL3_ttf unit |
| 90 | + |
| 91 | + with: |
| 92 | + source: units/SDL3_ttf.pas |
| 93 | + verbosity: ewnh |
| 94 | + - name: Compile SDL3_textengine unit |
| 95 | + |
| 96 | + with: |
| 97 | + source: units/SDL3_textengine.pas |
| 98 | + verbosity: ewnh |
0 commit comments