Skip to content

Commit

Permalink
ci: set git_ref_name to PRODUCT_VERSION, for artifacts name.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Sep 27, 2024
1 parent dc23259 commit e2fca00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ echo WEASEL_ROOT=%WEASEL_ROOT%
echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES%
echo.

if defined GITHUB_ENV (
setlocal enabledelayedexpansion
echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV!
)

if defined BOOST_ROOT (
if exist "%BOOST_ROOT%\boost" goto boost_found
)
Expand Down
6 changes: 6 additions & 0 deletions xbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ echo WEASEL_BUILD=%WEASEL_BUILD%
echo WEASEL_ROOT=%WEASEL_ROOT%
echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES%
echo BOOST_ROOT=%BOOST_ROOT%

if defined GITHUB_ENV (
setlocal enabledelayedexpansion
echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV!
)

rem ---------------------------------------------------------------------------
rem parse the command line options
set build_config=release
Expand Down

0 comments on commit e2fca00

Please sign in to comment.