File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,35 @@ jobs:
10
10
runs-on : windows-latest
11
11
steps :
12
12
- name : Checkout Repository
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v3
14
14
with :
15
15
fetch-depth : 0
16
16
17
17
- name : Install .NET
18
- uses : actions/setup-dotnet@v1
18
+ uses : actions/setup-dotnet@v3
19
19
with :
20
20
dotnet-version : 6.0.x
21
+
21
22
- name : Restore dependencies
22
23
run : dotnet restore src
24
+
23
25
- name : Build Project
24
26
run : dotnet build -c Release --no-restore src
25
27
26
28
- name : Build Packages
27
29
run : dotnet pack src/ImGui.NET -c Release --no-restore --no-build
30
+
28
31
- name : List Packages
29
32
run : ls -l bin\Release\ImGui.NET\
30
33
34
+ - name : Validate Generated Code
35
+ if : startsWith(github.ref, 'refs/tags/')
36
+ shell : bash
37
+ run : |
38
+ echo "Running CodeGenerator"
39
+ bin/Release/CodeGenerator/net6.0/CodeGenerator.exe "src/ImGui.NET/Generated"
40
+ git status -s | findstr . && echo "ERROR: CodeGenerator is not executed, please execute it." && exit 1 || exit 0
41
+
31
42
- name : Publish to nuget.org
32
43
if : startsWith(github.ref, 'refs/tags/')
33
44
run : dotnet nuget push bin\Release\ImGui.NET\*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_KEY}}
You can’t perform that action at this time.
0 commit comments