Skip to content

Commit

Permalink
github actions logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Nov 21, 2023
1 parent a34e2e8 commit 4308b78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions poetry/build_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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/"
Expand Down
9 changes: 9 additions & 0 deletions poetry/build_msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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/"
Expand Down

0 comments on commit 4308b78

Please sign in to comment.