forked from cleolibrary/CLEO4
-
Notifications
You must be signed in to change notification settings - Fork 6
119 lines (103 loc) · 3.99 KB
/
test.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
110
111
112
113
114
115
116
117
118
119
name: CLEO 5 Test Build
on:
push:
paths-ignore:
- ".github/*"
- "*.md"
pull_request:
types: [opened, reopened]
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Core - Build
shell: cmd
run: |
set PLUGIN_SDK_DIR=%GITHUB_WORKSPACE%\third-party\plugin-sdk
msbuild -m CLEO5.sln /property:Configuration=Release /property:Platform=GTASA
# - name: Core - Sign
# uses: x87/code-sign-action@develop
# with:
# certificate: '${{ secrets.DIG_KEY_CERT }}'
# password: '${{ secrets.DIG_KEY_PWD }}'
# certificatename: 'Seemann'
# description: 'CLEO 5'
# timestampUrl: 'http://timestamp.digicert.com'
# filename: './.output/Release/cleo.asi'
- name: Core - VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_KEY }}
files: './.output/Release/CLEO.asi'
- name: Plugins - Build
shell: cmd
run: |
set PLUGIN_SDK_DIR=%GITHUB_WORKSPACE%\third-party\plugin-sdk
msbuild -m cleo_plugins/CLEO_Plugins.sln /property:Configuration=Release /property:Platform=x86
# - name: Plugins - Sign
# uses: x87/code-sign-action@develop
# with:
# certificate: '${{ secrets.DIG_KEY_CERT }}'
# password: '${{ secrets.DIG_KEY_PWD }}'
# certificatename: 'Seemann'
# description: 'CLEO 5 Plugin'
# timestampUrl: 'http://timestamp.digicert.com'
# folder: './cleo_plugins/.output'
- name: Plugins - VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_KEY }}
files: './cleo_plugins/.output/*.cleo'
- name: ModLoader plugin - Build
shell: cmd
run: |
set PLUGIN_SDK_DIR=%GITHUB_WORKSPACE%\third-party\plugin-sdk
msbuild -m modloader_plugin/CLEO_ModLoader_Plugin.sln /property:Configuration=Release /property:Platform=x86
# - name: ModLoader plugin - Sign
# uses: x87/code-sign-action@develop
# with:
# certificate: '${{ secrets.DIG_KEY_CERT }}'
# password: '${{ secrets.DIG_KEY_PWD }}'
# certificatename: 'Seemann'
# description: 'CLEO 5 ModLoader plugin'
# timestampUrl: 'http://timestamp.digicert.com'
# filename: './modloader_plugin/.output/Release/CLEO5_Provider.dll'
- name: ModLoader plugin - VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_KEY }}
files: './modloader_plugin/.output/Release/CLEO5_Provider.dll'
- name: Gather Output Files
id: prepare_archive
shell: cmd
run: |
echo on
echo Creating output directories
mkdir .output\Release\cleo
mkdir .output\Release\cleo\cleo_plugins
mkdir .output\Release\modloader
mkdir .output\Release\modloader\.data
mkdir .output\Release\modloader\.data\plugins
echo Copying output files
copy source\cleo_config.ini .output\Release\cleo\.cleo_config.ini
copy cleo_plugins\.output\*.cleo .output\Release\cleo\cleo_plugins
copy cleo_plugins\.output\*.ini .output\Release\cleo\cleo_plugins
copy cleo_plugins\Audio\bass\bass.dll .output\Release\bass.dll
copy modloader_plugin\.output\Release\*.dll .output\Release\modloader\.data\plugins
- name: Upload Result
uses: actions/upload-artifact@v4
with:
compression-level: 6 #Default
include-hidden-files: true
name: SA.CLEO5
path: |
.output\Release\*
!.output\Release\*.pdb
!.output\Release\*.lib
!.output\Release\*.exp