Skip to content

Commit

Permalink
optionally build nupkg
Browse files Browse the repository at this point in the history
  • Loading branch information
rigazilla committed Aug 1, 2022
1 parent 543ba5f commit 1d20cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
set SWIG_DIR=${{ github.workspace }}\nupkg\swigwin.3.0.9\tools\swigwin-3.0.9\Lib
set SWIG_EXECUTABLE=${{ github.workspace }}\nupkg\swigwin.3.0.9\tools\swigwin-3.0.9\swig.exe
set CLIENT_VERSION=%GITHUB_REF_NAME%
set packNuget=true
build.bat
- uses: ncipollo/release-action@v1
with:
Expand Down
7 changes: 4 additions & 3 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ if "%HOTROD_PREBUILT_LIB_DIR%" == "" (
if %errorlevel% neq 0 goto fail

cmake %* -P ../wix-bundle.cmake

cpack -G NuGet -R %nuget_package_name% -C RelWithDebInfo
if %errorlevel% neq 0 goto fail
if "%packNuget%"=="true" (
cpack -G NuGet -R %nuget_package_name% -C RelWithDebInfo
if %errorlevel% neq 0 goto fail
)
)
if %errorlevel% neq 0 goto fail
endlocal
Expand Down

0 comments on commit 1d20cea

Please sign in to comment.