Skip to content

Commit af105c0

Browse files
Merge pull request DK22Pac#248 from cleolibrary/workflow_updates
Workflow updates.
2 parents def9185 + e83bbb4 commit af105c0

5 files changed

Lines changed: 13 additions & 78 deletions

File tree

.github/workflows/Build_Plugin_GTA_2.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Plugin GTA2
1+
name: Plugin GTA 2
22

33
on:
44
workflow_dispatch:
@@ -28,19 +28,6 @@ on:
2828
- "safetyhook/**"
2929
- "shared/**"
3030
- "plugin_II/**"
31-
32-
pull_request_target:
33-
paths:
34-
- "!**.dll"
35-
- "!**.md"
36-
- "!**.txt"
37-
- "tools/premake/**"
38-
- "hooking/**"
39-
- "injector/**"
40-
- "modutils/**"
41-
- "safetyhook/**"
42-
- "shared/**"
43-
- "plugin_II/**"
4431

4532
jobs:
4633
build:
@@ -72,15 +59,15 @@ jobs:
7259
echo ::group::Build SDK
7360
msbuild plugin.sln /property:Configuration=zDebug /property:Platform="Mixed Platforms" /target:plugin_ii /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
7461
powershell -Command "(gc output.log) | sort | get-unique > output.log"
75-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
62+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
7663
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=SDK compilation::'+$m[5])} else {echo ('::error title=SDK compilation::' + $line)} }"
7764
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
7865
echo ::groupEnd::
7966
8067
echo ::group::Build test plugin
8168
msbuild examples\Test\Test.sln /property:Configuration=Debug /property:Platform=GTA2 /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
8269
powershell -Command "(gc output.log) | sort | get-unique > output.log"
83-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
70+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
8471
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=Test plugin compilation::'+$m[5])} else {echo ('::error title=Test plugin compilation::' + $line)} }"
8572
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
8673
echo ::groupEnd::

.github/workflows/Build_Plugin_GTA_3.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Plugin GTA3
1+
name: Plugin GTA 3
22

33
on:
44
workflow_dispatch:
@@ -28,19 +28,6 @@ on:
2828
- "safetyhook/**"
2929
- "shared/**"
3030
- "plugin_III/**"
31-
32-
pull_request_target:
33-
paths:
34-
- "!**.dll"
35-
- "!**.md"
36-
- "!**.txt"
37-
- "tools/premake/**"
38-
- "hooking/**"
39-
- "injector/**"
40-
- "modutils/**"
41-
- "safetyhook/**"
42-
- "shared/**"
43-
- "plugin_III/**"
4431

4532
jobs:
4633
build:
@@ -72,15 +59,15 @@ jobs:
7259
echo ::group::Build SDK
7360
msbuild plugin.sln /property:Configuration=zDebug /property:Platform="Mixed Platforms" /target:plugin_iii /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
7461
powershell -Command "(gc output.log) | sort | get-unique > output.log"
75-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
62+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
7663
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=SDK compilation::'+$m[5])} else {echo ('::error title=SDK compilation::' + $line)} }"
7764
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
7865
echo ::groupEnd::
7966
8067
echo ::group::Build test plugin
8168
msbuild examples\Test\Test.sln /property:Configuration=Debug /property:Platform=GTA3 /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
8269
powershell -Command "(gc output.log) | sort | get-unique > output.log"
83-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
70+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
8471
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=Test plugin compilation::'+$m[5])} else {echo ('::error title=Test plugin compilation::' + $line)} }"
8572
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
8673
echo ::groupEnd::

.github/workflows/Build_Plugin_GTA_4.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Plugin GTA4
1+
name: Plugin GTA 4
22

33
on:
44
workflow_dispatch:
@@ -28,19 +28,6 @@ on:
2828
- "safetyhook/**"
2929
- "shared/**"
3030
- "plugin_IV/**"
31-
32-
pull_request_target:
33-
paths:
34-
- "!**.dll"
35-
- "!**.md"
36-
- "!**.txt"
37-
- "tools/premake/**"
38-
- "hooking/**"
39-
- "injector/**"
40-
- "modutils/**"
41-
- "safetyhook/**"
42-
- "shared/**"
43-
- "plugin_IV/**"
4431

4532
jobs:
4633
build:
@@ -72,15 +59,15 @@ jobs:
7259
echo ::group::Build SDK
7360
msbuild plugin.sln /property:Configuration=zDebug /property:Platform="Mixed Platforms" /target:plugin_iv /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
7461
powershell -Command "(gc output.log) | sort | get-unique > output.log"
75-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
62+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
7663
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=SDK compilation::'+$m[5])} else {echo ('::error title=SDK compilation::' + $line)} }"
7764
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
7865
echo ::groupEnd::
7966
8067
echo ::group::Build test plugin
8168
msbuild examples\Test\Test.sln /property:Configuration=Debug /property:Platform=GTA4 /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
8269
powershell -Command "(gc output.log) | sort | get-unique > output.log"
83-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
70+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
8471
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=Test plugin compilation::'+$m[5])} else {echo ('::error title=Test plugin compilation::' + $line)} }"
8572
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
8673
echo ::groupEnd::

.github/workflows/Build_Plugin_GTA_SA.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ on:
2828
- "safetyhook/**"
2929
- "shared/**"
3030
- "plugin_sa/**"
31-
32-
pull_request_target:
33-
paths:
34-
- "!**.dll"
35-
- "!**.md"
36-
- "!**.txt"
37-
- "tools/premake/**"
38-
- "hooking/**"
39-
- "injector/**"
40-
- "modutils/**"
41-
- "safetyhook/**"
42-
- "shared/**"
43-
- "plugin_sa/**"
4431

4532
jobs:
4633
build:
@@ -72,15 +59,15 @@ jobs:
7259
echo ::group::Build SDK
7360
msbuild plugin.sln /property:Configuration=zDebug /property:Platform="Mixed Platforms" /target:plugin_sa /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
7461
powershell -Command "(gc output.log) | sort | get-unique > output.log"
75-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
62+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
7663
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=SDK compilation::'+$m[5])} else {echo ('::error title=SDK compilation::' + $line)} }"
7764
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
7865
echo ::groupEnd::
7966
8067
echo ::group::Build test plugin
8168
msbuild examples\Test\Test.sln /property:Configuration=Debug /property:Platform=GTASA /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
8269
powershell -Command "(gc output.log) | sort | get-unique > output.log"
83-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
70+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
8471
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=Test plugin compilation::'+$m[5])} else {echo ('::error title=Test plugin compilation::' + $line)} }"
8572
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
8673
echo ::groupEnd::

.github/workflows/Build_Plugin_GTA_VC.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ on:
2828
- "safetyhook/**"
2929
- "shared/**"
3030
- "plugin_vc/**"
31-
32-
pull_request_target:
33-
paths:
34-
- "!**.dll"
35-
- "!**.md"
36-
- "!**.txt"
37-
- "tools/premake/**"
38-
- "hooking/**"
39-
- "injector/**"
40-
- "modutils/**"
41-
- "safetyhook/**"
42-
- "shared/**"
43-
- "plugin_vc/**"
4431

4532
jobs:
4633
build:
@@ -72,15 +59,15 @@ jobs:
7259
echo ::group::Build SDK
7360
msbuild plugin.sln /property:Configuration=zDebug /property:Platform="Mixed Platforms" /target:plugin_vc /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
7461
powershell -Command "(gc output.log) | sort | get-unique > output.log"
75-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
62+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
7663
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=SDK compilation::'+$m[5])} else {echo ('::error title=SDK compilation::' + $line)} }"
7764
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
7865
echo ::groupEnd::
7966
8067
echo ::group::Build test plugin
8168
msbuild examples\Test\Test.sln /property:Configuration=Debug /property:Platform=GTAVC /m /fileLogger1 /fileLoggerParameters1:warningsOnly;errorsOnly;logfile=output.log
8269
powershell -Command "(gc output.log) | sort | get-unique > output.log"
83-
powershell -Command "(gc output.log) -replace ' 2>','' -replace 'D:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
70+
powershell -Command "(gc output.log) -replace ' \d>','' -replace '.:\\a\\plugin-sdk\\plugin-sdk\\','' | Out-File -encoding ASCII output.log"
8471
powershell -Command "foreach($line in Get-Content 'output.log') { $m = $line -match '^(.*)\((\d+),(\d+)\): (\w+) (.*) \[.*\]$'; if ($m) {$m = $Matches; echo ('::'+$m[4]+' file='+$m[1]+',line='+$m[2]+',title=Test plugin compilation::'+$m[5])} else {echo ('::error title=Test plugin compilation::' + $line)} }"
8572
for %%R in (output.log) do if not %%~zR lss 1 (exit 1)
8673
echo ::groupEnd::

0 commit comments

Comments
 (0)