-
Notifications
You must be signed in to change notification settings - Fork 6
118 lines (114 loc) · 3.38 KB
/
ci.yml
File metadata and controls
118 lines (114 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
macos-15:
runs-on: macos-15
steps:
- name: Install FPC
run: |
brew update
brew install fpc
- name: Checkout code
uses: actions/checkout@v2
- name: Compile SDL3 unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3.pas
verbosity: ewnh
- name: Compile SDL3_image unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_image.pas
verbosity: ewnh
- name: Compile SDL3_mixer unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_mixer.pas
verbosity: ewnh
- name: Compile SDL3_ttf unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_ttf.pas
verbosity: ewnh
- name: Compile SDL3_textengine unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_textengine.pas
verbosity: ewnh
# This job runs inside a Fedora Rawhide container instead of straight
# on the Ubuntu runner, because (at the moment of writing this comment)
# the latest Ubuntu version supported by GitHub Actions is 24.04, which
# does not have an SDL3 package.
fedora-rawhide:
runs-on: ubuntu-latest
container: registry.fedoraproject.org/fedora:rawhide
steps:
- name: Install FPC
run: |
dnf install --assumeyes --setopt=install_weak_deps=False diffutils gcc fpc SDL3-devel
- name: Checkout code
uses: actions/checkout@v2
- name: Compile SDL3 unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3.pas
verbosity: ewnh
- name: Compile SDL3_image unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_image.pas
verbosity: ewnh
- name: Compile SDL3_mixer unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_mixer.pas
verbosity: ewnh
- name: Compile SDL3_ttf unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_ttf.pas
verbosity: ewnh
- name: Compile SDL3_textengine unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_textengine.pas
verbosity: ewnh
- name: Run type-sizes test
run: ./tests/type-sizes.sh
windows-2025:
runs-on: windows-2025
steps:
- name: Install Lazarus
run: |
choco install lazarus
- name: Checkout code
uses: actions/checkout@v2
- name: Compile SDL3 unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3.pas
verbosity: ewnh
- name: Compile SDL3_image unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_image.pas
verbosity: ewnh
- name: Compile SDL3_mixer unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_mixer.pas
verbosity: ewnh
- name: Compile SDL3_ttf unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_ttf.pas
verbosity: ewnh
- name: Compile SDL3_textengine unit
uses: suve/GHActions-FPC@v0.4.0
with:
source: units/SDL3_textengine.pas
verbosity: ewnh