-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
83 lines (71 loc) · 2.92 KB
/
.gitlab-ci.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
before_script:
- echo "Starting build for %CI_PROJECT_NAME%"
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- deploy
Ida32Build:
stage: build
tags:
- msvc2019
- qt
- ida
script:
- echo " --> IDA Pro (32-bit) version..."
- '%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"'
- cd %CI_PROJECT_DIR%
- if not exist "Ida32Build" mkdir Ida32Build
- cd Ida32Build
- set IDASDK=C:\Program Files\IDA Pro 7.3\idasdk73
- set IDATARGET=IDA32WIN
- cmake -G"Visual Studio 16 2019" -A x64 ..
- cmake --build . --config RelWithDebInfo
artifacts:
name: "%CI_PROJECT_NAME%_%CI_JOB_NAME%-%CI_COMMIT_SHA%"
paths:
- ./Ida32Build/bin/IDATag.dll
Ida64Build:
stage: build
tags:
- msvc2019
- qt
- ida
script:
- echo " --> IDA Pro (64-bit) version..."
- '%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"'
- cd %CI_PROJECT_DIR%
- if not exist "Ida64Build" mkdir Ida64Build
- cd Ida64Build
- set IDASDK=C:\Program Files\IDA Pro 7.3\idasdk73
- set IDATARGET=IDA64WIN
- cmake -G"Visual Studio 16 2019" -A x64 ..
- cmake --build . --config RelWithDebInfo
artifacts:
name: "%CI_PROJECT_NAME%_%CI_JOB_NAME%-%CI_COMMIT_SHA%"
paths:
- ./Ida64Build/bin/IDATag64.dll
deploy:
stage: deploy
dependencies:
- Ida32Build
- Ida64Build
before_script:
- if not exist "N:" net use /Y "N:" \\filer.lci.re\data\nfs
script:
- if not exist "N:\binaries\Git\%CI_PROJECT_NAME%" mkdir N:\binaries\Git\%CI_PROJECT_NAME%
- if not exist "N:\binaries\Git\%CI_PROJECT_NAME%\_latest" mkdir N:\binaries\Git\%CI_PROJECT_NAME%\_latest
- if not exist "N:\binaries\Git\%CI_PROJECT_NAME%\_latest\x64" mkdir N:\binaries\Git\%CI_PROJECT_NAME%\_latest\x64
- if not exist "N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%" mkdir N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%
- if not exist "N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%\x64" mkdir N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%\x64
- if not exist "%CI_PROJECT_DIR%\bin" mkdir "%CI_PROJECT_DIR%\bin"
- xcopy "%CI_PROJECT_DIR%\Ida64Build\bin\IDATag64.dll" "%CI_PROJECT_DIR%\bin" /Y
- xcopy "%CI_PROJECT_DIR%\Ida32Build\bin\IDATag.dll" "%CI_PROJECT_DIR%\bin" /Y
- xcopy "%CI_PROJECT_DIR%\Ida64Build\bin\IDATag64.dll" N:\binaries\Git\%CI_PROJECT_NAME%\_latest\x64 /Y
- xcopy "%CI_PROJECT_DIR%\Ida64Build\bin\IDATag64.dll" N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%\x64 /Y
- xcopy "%CI_PROJECT_DIR%\Ida32Build\bin\IDATag.dll" N:\binaries\Git\%CI_PROJECT_NAME%\_latest\x64 /Y
- xcopy "%CI_PROJECT_DIR%\Ida32Build\bin\IDATag.dll" N:\binaries\Git\%CI_PROJECT_NAME%\%CI_COMMIT_SHA%\x64 /Y
artifacts:
name: "%CI_PROJECT_NAME%-%CI_COMMIT_SHA%"
paths:
- ./bin