-
Notifications
You must be signed in to change notification settings - Fork 1
122 lines (116 loc) · 5.44 KB
/
main.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
120
121
122
name: CI
on:
pull_request:
branches: [ main ]
jobs:
windows-build:
strategy:
matrix:
os: [ windows-2022, ubuntu-24.04 ]
config: [ Debug, Release ]
name: PR Build ${{matrix.os}} ${{matrix.config}}
runs-on: ${{ matrix.os }}
steps:
# Setup Environment
- uses: actions/checkout@v2
with:
path: "Soup"
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Setup Soup Build
uses: soupbuild/setup-soup@v1
with:
version: latest
# Build Soup
- name: Soup Where
run: swhere
- name: Soup Restore Client
run: soup restore ./Soup/Source/Client/CLI/
- name: Soup Build Client
run: soup build ./Soup/Source/Client/CLI/ -flavor ${{matrix.config}}
- name: Soup Run Version
run: soup run ./Soup/Source/Client/CLI/ -flavor ${{matrix.config}} -args version
- name: Soup Restore GenerateTest
run: soup restore ./Soup/Source/GenerateTest/
- name: Soup Build GenerateTest
run: soup build ./Soup/Source/GenerateTest/ -flavor ${{matrix.config}}
# - name: Soup Restore SWhere
# run: soup restore ./Soup/Source/GenerateSharp/Swhere/
# - name: Soup Build SWhere
# run: soup build ./Soup/Source/GenerateSharp/Swhere/ -flavor ${{matrix.config}}
# - name: Soup Restore PackageManager
# run: soup restore ./Soup/Source/GenerateSharp/PackageManager/
# - name: Soup Build PackageManager
# run: soup build ./Soup/Source/GenerateSharp/PackageManager/ -flavor ${{matrix.config}}
- name: Soup Restore Tools
run: soup restore ./Soup/Source/Client/Tools/
- name: Soup Build Tools
run: soup build ./Soup/Source/Client/Tools/ -flavor ${{matrix.config}}
# Build DotNet
- name: DotNet Restore
if: matrix.os != 'ubuntu-22.04'
run: dotnet restore ./Soup/Source/GenerateSharp/GenerateSharp.sln
- name: DotNet Build
if: matrix.os != 'ubuntu-22.04'
run: dotnet build -c ${{matrix.config}} --no-restore ./Soup/Source/GenerateSharp/GenerateSharp.sln
- name: DotNet Test
if: matrix.os != 'ubuntu-22.04'
run: dotnet test -c ${{matrix.config}} --no-build --verbosity normal ./Soup/Source/GenerateSharp/GenerateSharp.sln
# Build Tools
- name: Soup Restore PrintGraph
run: soup restore ./Soup/Source/Tools/PrintGraph/
- name: Soup Build PrintGraph
run: soup build ./Soup/Source/Tools/PrintGraph/ -flavor ${{matrix.config}}
- name: Soup Restore PrintResults
run: soup restore ./Soup/Source/Tools/PrintResults/
- name: Soup Build PrintResults
run: soup build ./Soup/Source/Tools/PrintResults/ -flavor ${{matrix.config}}
- name: Soup Restore PrintValueTable
run: soup restore ./Soup/Source/Tools/PrintValueTable/
- name: Soup Build PrintValueTable
run: soup build ./Soup/Source/Tools/PrintValueTable/ -flavor ${{matrix.config}}
# Build Samples
- name: Soup Restore C BuildExtension
run: soup restore ./Soup/Samples/C/BuildExtension/Executable/
- name: Soup Build C BuildExtension
run: soup build ./Soup/Samples/C/BuildExtension/Executable/ -flavor ${{matrix.config}}
- name: Soup Build C ConsoleApplication
run: soup build ./Soup/Samples/C/ConsoleApplication/ -flavor ${{matrix.config}}
- name: Soup Build C DynamicLibrary
run: soup build ./Soup/Samples/C/DynamicLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build C StaticLibrary
run: soup build ./Soup/Samples/C/StaticLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build C WindowsApplication
if: matrix.os != 'ubuntu-24.04'
run: soup build ./Soup/Samples/C/WindowsApplication/ -flavor ${{matrix.config}}
- name: Soup Restore Cpp BuildExtension
run: soup restore ./Soup/Samples/Cpp/BuildExtension/Executable/
- name: Soup Build Cpp BuildExtension
run: soup build ./Soup/Samples/Cpp/BuildExtension/Executable/ -flavor ${{matrix.config}}
- name: Soup Build Cpp ConsoleApplication
run: soup build ./Soup/Samples/Cpp/ConsoleApplication/ -flavor ${{matrix.config}}
- name: Soup Build Cpp DirectX
if: matrix.os != 'ubuntu-24.04'
run: soup build ./Soup/Samples/Cpp/DirectX/ -flavor ${{matrix.config}}
- name: Soup Build Cpp DynamicLibrary
run: soup build ./Soup/Samples/Cpp/DynamicLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build Cpp ModuleInterface
run: soup build ./Soup/Samples/Cpp/ModuleInterface/ -flavor ${{matrix.config}}
- name: Soup Restore Cpp ParseJsonFile
run: soup restore ./Soup/Samples/Cpp/ParseJsonFile/
- name: Soup Build Cpp ParseJsonFile
run: soup build ./Soup/Samples/Cpp/ParseJsonFile/ -flavor ${{matrix.config}}
- name: Soup Build Cpp StaticLibrary
run: soup build ./Soup/Samples/Cpp/StaticLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build Cpp WindowsApplication
if: matrix.os != 'ubuntu-24.04'
run: soup build ./Soup/Samples/Cpp/WindowsApplication/ -flavor ${{matrix.config}}
# - name: Soup Restore CSharp BuildExtension
# run: soup restore ./Soup/Samples/CSharp/BuildExtension/Executable/
# - name: Soup Build CSharp BuildExtension
# run: soup build ./Soup/Samples/CSharp/BuildExtension/Executable/ -flavor ${{matrix.config}}
# - name: Soup Build CSharp ConsoleApplication
# run: soup build ./Soup/Samples/CSharp/ConsoleApplication/ -flavor ${{matrix.config}}