Skip to content

Commit

Permalink
ci: ensure build workflow
Browse files Browse the repository at this point in the history
ci: debug
  • Loading branch information
Sven Luijten committed May 1, 2023
1 parent 00f3ffb commit dec3564
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
Expand Down
2 changes: 1 addition & 1 deletion bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.gz"
download_release "$ASDF_INSTALL_VERSION" "$release_file"

# Extract contents of tar.gz file into the download directory
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"
tar --verbose --verbose -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"

# Remove the tar.gz file since we don't need to keep it
rm "$release_file"
8 changes: 5 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ download_release() {
version="$1"
filename="$2"
arch="$(get_arch)"
platform="$(get_platform)"
platform="$(get_platform | tr '[:upper:]' '[:lower:]')"

url="$GH_REPO/archive/v${version}.tar.gz"
echo "** Platform: $platform"
echo "** Arch: $arch"
echo "** Version: $version"

url=$(curl -s "https://api.github.com/repos/guumaster/hostctl/releases/tags/v${version}" | grep -o -E "https://.+?_${platform,,}_${arch}.tar.gz")
url=$(curl -s "https://api.github.com/repos/guumaster/hostctl/releases/tags/v${version}" | grep -o -E "https://.+?_${platform}_${arch}.tar.gz")

echo "* Downloading $TOOL_NAME release $version..."
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
Expand Down

0 comments on commit dec3564

Please sign in to comment.