From 4308b78f860e3b9ed73377dc781bb012fceecf9d Mon Sep 17 00:00:00 2001 From: Reshetnikov Alexandr Date: Wed, 22 Nov 2023 04:21:15 +0700 Subject: [PATCH] github actions logging --- poetry/build_gnu.sh | 9 +++++++++ poetry/build_msvc.sh | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/poetry/build_gnu.sh b/poetry/build_gnu.sh index 62db28511..173f0c2d4 100755 --- a/poetry/build_gnu.sh +++ b/poetry/build_gnu.sh @@ -17,6 +17,9 @@ mkdir -p "$release_version_dirpath" && cd "$dp0/release" echo "download python install script ..." python_bin_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/$python_self_name/$self_toolset_name.tar.gz" + +echo "::group::prepare sources $python_bin_download_url" + python_download_zip="$dp0/release/$python_self_name.tar.gz" [[ ! -f "$python_download_zip" ]] && wget "$python_bin_download_url" -O "$python_download_zip" @@ -33,11 +36,17 @@ cpython_bin="$release_version_dirpath/Scripts/bin/python3" "$bsdtar" -xf "$python_include_download_zip" "python/install/include" cp -rf "python/install/include" "$release_version_dirpath/Scripts/include/" +echo "::endgroup::" + +echo "::group::build" + echo "install poetry ..." "$cpython_bin" -m pip install "poetry==$tool_version" "$cpython_bin" -m poetry self add poetry-plugin-sort "$cpython_bin" -m poetry self lock +echo "::endgroup::" + echo "prepare build artifacts ..." cp -f "$dp0/release/poetry.sh" "$release_version_dirpath/" diff --git a/poetry/build_msvc.sh b/poetry/build_msvc.sh index 2baaeaa2e..42d3dc6d5 100755 --- a/poetry/build_msvc.sh +++ b/poetry/build_msvc.sh @@ -13,6 +13,9 @@ mkdir -p "$release_version_dirpath" && cd "$dp0/release" echo "download python install script ..." python_bin_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/$python_self_name/$self_toolset_name.tar.gz" + +echo "::group::prepare sources $python_bin_download_url" + python_download_zip="$dp0/release/$python_self_name.tar.gz" [[ ! -f "$python_download_zip" ]] && wget "$python_bin_download_url" -O "$python_download_zip" @@ -22,12 +25,18 @@ bsdtar="$dp0/release/bsdtar" cpython_bin="$release_version_dirpath/Scripts/python.exe" [[ ! -f "$cpython_bin" ]] && tar -xf "$python_download_zip" -C "$release_version_dirpath" +echo "::endgroup::" + +echo "::group::build" + echo "install poetry ..." "$cpython_bin" -m pip install poetry=="$tool_version" "$cpython_bin" -m poetry self add poetry-plugin-sort "$cpython_bin" -m poetry self lock +echo "::endgroup::" + echo "prepare build artifacts ..." cp -f "$dp0/release/poetry.bat" "$release_version_dirpath/" cp -f "$dp0/release/__main__poetry.py" "$release_version_dirpath/"