-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (104 loc) · 4.9 KB
/
build.yml
File metadata and controls
105 lines (104 loc) · 4.9 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
105
name: build
on: [push]
jobs:
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: fetch maps plugin
working-directory: .
run: |
mkdir plugins
cd plugins
git.exe clone https://github.com/Phantasm-Studios/phantasm-maps.git maps
- name: fetch gltf plugin
working-directory: plugins
run: |
git.exe clone https://github.com/Phantasm-Studios/Phantasm-gltf.git gltf_import
- name: fetch shader_editor plugin
working-directory: plugins
run: |
git.exe clone https://github.com/Phantasm-Studios/Phantasm-shader.git shader_editor
- name: fetch rml plugin
working-directory: plugins
run: |
git.exe clone https://github.com/Phantasm-Studios/Phantasm-rml-plugin.git rml
- name: make project
working-directory: projects
run: |
./genie.exe vs2019
- name: build engine
working-directory: projects
shell: cmd
run: |
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2019/LumixEngine.sln /p:Configuration=RelWithDebInfo
- name: make dx11 project
working-directory: projects
run: |
pushd ..\plugins
git.exe clone https://github.com/sibongumusa14/dx-renderer.git dx11
popd
./genie.exe vs2019
- name: build dx11 engine
working-directory: projects
shell: cmd
run: |
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2019/LumixEngine.sln /p:Configuration=RelWithDebInfo
- name: make dx12 project
working-directory: projects
run: |
pushd ..\plugins
popd
./genie.exe --dx12 vs2019
- name: build dx12 engine
working-directory: projects
shell: cmd
run: |
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2019/LumixEngine.sln /p:Configuration=RelWithDebInfo
linux_and_static_analysis:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Dependencies
env:
PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }}
run: |
if [[ "$PVS_STUDIO_LICENSE" != "" ]];
then
echo "$PVS_STUDIO_LICENSE" > pvs-studio.lic
wget -q https://files.viva64.com/etc/pubkey.txt
sudo apt-key add pubkey.txt
sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list
sudo apt-get update
sudo apt-get install -y pvs-studio
fi
sudo apt-get install mesa-common-dev
sudo apt-get install libasound2-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libgl1-mesa-glx
- name: Download 3rdparties
run: |
cd projects
mkdir -p ../external/freetype/lib/linux64_gmake/release
mkdir -p ../external/luajit/lib/linux64_gmake/release
mkdir -p ../external/nvtt/lib/linux64_gmake/release
mkdir -p ../external/physx/lib/linux64_gmake/release
mkdir -p ../external/recast/lib/linux64_gmake/release
git clone --depth=1 https://github.com/Phantasm-Studios/Phantasm_linux_3rdparty_bin.git
cp Phantasm_linux_3rdparty_bin/freetype/* ../external/freetype/lib/linux64_gmake/release
cp Phantasm_linux_3rdparty_bin/luajit/* ../external/luajit/lib/linux64_gmake/release
cp Phantasm_linux_3rdparty_bin/nvtt/* ../external/nvtt/lib/linux64_gmake/release
cp Phantasm_linux_3rdparty_bin/physx/* ../external/physx/lib/linux64_gmake/release
cp Phantasm_linux_3rdparty_bin/recast/* ../external/recast/lib/linux64_gmake/release
- name: PVS-Studio static analysis
run: |
cd projects
./genie --pvs-studio-build gmake
cd tmp/gmake
pvs-studio-analyzer trace -- make -j EXTRA_WARNINGS=1
pvs-studio-analyzer analyze -e ../../../src/renderer/editor/mikktspace.c -e ../../../src/renderer/editor/miniz.c -e ../../../external -l ../../../pvs-studio.lic -o pvs-studio.log
plog-converter -a 'GA:1,2;OP:1' -d V730,V1001,V530,V1048,V763 -t errorfile -w pvs-studio.log