-
Notifications
You must be signed in to change notification settings - Fork 218
104 lines (95 loc) · 2.26 KB
/
main.yml
File metadata and controls
104 lines (95 loc) · 2.26 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
name: main
on: [push, pull_request]
jobs:
check-headers:
name: Check headers
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install pcre2grep
run: sudo apt-get update && sudo apt-get install -y pcre2-utils
- run: |
# macros in public headers must use the global namespace to qualify types
! pcre2grep --buffer-size=1M --recursive --multiline --line-number --include='.*\.h$' \
'#define\s+(?:.*\\\r?\n)*.*?\K(?<!:)\b(Enum|String|StringOffset|Array|ArrayClassID|Math|Math_obj|Void|null|Dynamic|hx::|cpp::)\b' \
include
name: Check public headers
Windows32:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test Windows (32bit)
with:
haxe: ${{ matrix.haxe }}
arch: 32
sep: \
ext: .dll
os: windows-latest
Windows64:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test Windows (64bit)
with:
haxe: ${{ matrix.haxe }}
arch: 64
sep: \
ext: .dll
os: windows-latest
MacOS64:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test MacOS (x86_64)
with:
haxe: ${{ matrix.haxe }}
arch: 64
sep: /
ext: .dylib
os: macos-15-intel
MacOSArm:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test MacOS (Arm64)
with:
haxe: ${{ matrix.haxe }}
arch: Arm64
sep: /
ext: .dylib
os: macos-latest
Linux32:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test Linux (32bit)
with:
haxe: ${{ matrix.haxe }}
arch: 32
sep: /
ext: .dso
os: ubuntu-latest
Linux64:
strategy:
fail-fast: false
matrix:
haxe: [ 4.3.7, latest ]
uses: ./.github/workflows/test.yml
name: Test Linux (64bit)
with:
haxe: ${{ matrix.haxe }}
arch: 64
sep: /
ext: .dso
os: ubuntu-latest