-
-
Notifications
You must be signed in to change notification settings - Fork 19
109 lines (89 loc) · 3.44 KB
/
delphi-package.yml
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
name: Delphi package
on: [push]
jobs:
build_sempare_template_engine:
runs-on: self-hosted
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: remove comment from specific line in file
run: |
$filePath = "src/Sempare.Template.Compiler.inc"
$lineToFind = '// {$DEFINE SEMPARE_TEMPLATE_CONFIRM_LICENSE}'
$newLine = '{$DEFINE SEMPARE_TEMPLATE_CONFIRM_LICENSE}'
(Get-Content $filePath) -replace [regex]::Escape($lineToFind), $newLine | Set-Content $filePath
- name: build win32 debug
shell: cmd
working-directory: scripts
run: build.bat Debug Win32
- name: run win32 debug tests
shell: cmd
working-directory: Win32\Debug
run: Sempare.Template.Tester.exe -cm:quiet -exit:continue -b -xmlfile:.\results.xml
- name: publish win32 debug test results
uses: actions/upload-artifact@v4
with:
name: Win32 Debug Results
path: './Win32/Debug/results.xml'
- name: publish win32 debug test results
uses: mikepenz/action-junit-report@v3
with:
check_name: Win32 Debug Results
report_paths: './Win32/Debug/results.xml'
- name: build win32 release
shell: cmd
working-directory: scripts
run: build.bat Release Win32
- name: run win32 release tests
shell: cmd
working-directory: Win32\Release
run: Sempare.Template.Tester.exe -cm:quiet -exit:continue -b -xmlfile:.\results.xml
- name: publish win32 release test results
uses: actions/upload-artifact@v4
with:
name: Win32 Release Results
path: './Win32/Release/results.xml'
- name: publish win32 release test results
uses: mikepenz/action-junit-report@v3
with:
check_name: Win32 Release Results
report_paths: './Win32/Release/results.xml'
- name: build win64 debug
shell: cmd
working-directory: scripts
run: build.bat Debug Win64
- name: run win64 debug tests
shell: cmd
working-directory: Win64\Debug
run: Sempare.Template.Tester.exe -cm:quiet -exit:continue -b -xmlfile:.\results.xml
- name: publish win64 debug test results
uses: actions/upload-artifact@v4
with:
name: Win64 Debug Results
path: './Win64/Debug/results.xml'
- name: publish win64 debug test results
uses: mikepenz/action-junit-report@v3
with:
check_name: Win64 Debug Results
report_paths: './Win64/Debug/results.xml'
- name: build win64 release
shell: cmd
working-directory: scripts
run: build.bat Release Win64
- name: run win64 release tests
shell: cmd
working-directory: Win64\Release
run: Sempare.Template.Tester.exe -cm:quiet -exit:continue -b -xmlfile:.\results.xml
- name: publish win64 release test results
uses: actions/upload-artifact@v4
with:
name: Win64 Release Results
path: './Win64/Release/results.xml'
- name: publish win64 release test results
uses: mikepenz/action-junit-report@v3
with:
check_name: Win64 Release Results
report_paths: './Win64/Release/results.xml'