Skip to content

Commit e8d3f3b

Browse files
Merge pull request #28 from suve/add-CI
Add a basic CI workflow
2 parents 047a1a7 + 18c8847 commit e8d3f3b

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

.github/workflows/ci.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
uses: suve/[email protected]
21+
with:
22+
source: units/SDL3.pas
23+
verbosity: ewnh
24+
- name: Compile SDL3_image unit
25+
uses: suve/[email protected]
26+
with:
27+
source: units/SDL3_image.pas
28+
verbosity: ewnh
29+
- name: Compile SDL3_ttf unit
30+
uses: suve/[email protected]
31+
with:
32+
source: units/SDL3_ttf.pas
33+
verbosity: ewnh
34+
- name: Compile SDL3_textengine unit
35+
uses: suve/[email protected]
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+
uses: suve/[email protected]
52+
with:
53+
source: units/SDL3.pas
54+
verbosity: ewnh
55+
- name: Compile SDL3_image unit
56+
uses: suve/[email protected]
57+
with:
58+
source: units/SDL3_image.pas
59+
verbosity: ewnh
60+
- name: Compile SDL3_ttf unit
61+
uses: suve/[email protected]
62+
with:
63+
source: units/SDL3_ttf.pas
64+
verbosity: ewnh
65+
- name: Compile SDL3_textengine unit
66+
uses: suve/[email protected]
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+
uses: suve/[email protected]
81+
with:
82+
source: units/SDL3.pas
83+
verbosity: ewnh
84+
- name: Compile SDL3_image unit
85+
uses: suve/[email protected]
86+
with:
87+
source: units/SDL3_image.pas
88+
verbosity: ewnh
89+
- name: Compile SDL3_ttf unit
90+
uses: suve/[email protected]
91+
with:
92+
source: units/SDL3_ttf.pas
93+
verbosity: ewnh
94+
- name: Compile SDL3_textengine unit
95+
uses: suve/[email protected]
96+
with:
97+
source: units/SDL3_textengine.pas
98+
verbosity: ewnh

0 commit comments

Comments
 (0)