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:
1010 runs-on : windows-latest
1111 steps :
1212 - name : Checkout Repository
13- uses : actions/checkout@v2
13+ uses : actions/checkout@v3
1414 with :
1515 fetch-depth : 0
1616
1717 - name : Install .NET
18- uses : actions/setup-dotnet@v1
18+ uses : actions/setup-dotnet@v3
1919 with :
2020 dotnet-version : 6.0.x
21+
2122 - name : Restore dependencies
2223 run : dotnet restore src
24+
2325 - name : Build Project
2426 run : dotnet build -c Release --no-restore src
2527
2628 - name : Build Packages
2729 run : dotnet pack src/ImGui.NET -c Release --no-restore --no-build
30+
2831 - name : List Packages
2932 run : ls -l bin\Release\ImGui.NET\
3033
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+
3142 - name : Publish to nuget.org
3243 if : startsWith(github.ref, 'refs/tags/')
3344 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