-
Notifications
You must be signed in to change notification settings - Fork 6
132 lines (129 loc) · 5.25 KB
/
build.yml
File metadata and controls
132 lines (129 loc) · 5.25 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: build
on: push
jobs:
compile-msvc-x86-release:
name: Windows MSVC x86 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-msvc-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-msvc-relwithdebinfo --target tools studio KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-msvc-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x86-msvc-relwithdebinfo --prefix dist/x86-msvc-relwithdebinfo
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86 debug symbols
path: |
build/x86-msvc-relwithdebinfo/src/3dmovie.pdb
build/x86-msvc-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86
path: |
dist/x86-msvc-relwithdebinfo
compile-clang-x86-debug:
name: Windows Clang x86 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-clangcl-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-clangcl-debug --target KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-clangcl-debug --output-on-failure --timeout 60
compile-msvc-x64-debug:
name: Windows MSVC x64 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-msvc-debug --target KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-msvc-debug --output-on-failure --timeout 60
compile-clang-x64-release:
name: Windows Clang x64 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-clangcl-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-clangcl-relwithdebinfo --target tools studio KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-clangcl-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x64-clangcl-relwithdebinfo --prefix dist/x64-clangcl-relwithdebinfo
move dist\x64-clangcl-relwithdebinfo\3dmovie.exe dist\x64-clangcl-relwithdebinfo\3dmovie-x64.exe
move build\x64-clangcl-relwithdebinfo\src\3dmovie.pdb build\x64-clangcl-relwithdebinfo\src\3dmovie-x64.pdb
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64 debug symbols
path: |
build/x64-clangcl-relwithdebinfo/src/3dmovie-x64.pdb
build/x64-clangcl-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64
path: |
dist/x64-clangcl-relwithdebinfo