Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Sep 21, 2025

This adds a universal download compatibility layer that works with curl or wget, along with download utility functions to .ci/common.sh script.


Summary by cubic

Introduce a curl/wget compatibility layer and shared download helpers in .ci/common.sh to make CI downloads robust across environments and reduce duplicated shell code.

  • New Features

    • Auto-detects curl or wget and exposes a consistent API.
    • Added helpers: download_to_stdout, download_to_file, download_with_headers, download_silent, download_with_progress, check_url.
  • Refactors

    • .ci/riscv-toolchain-install.sh now pipes download_to_stdout into tar.
    • .github/workflows/main.yml sources .ci/common.sh and replaces wget calls with download_with_headers and download_to_file for release queries and asset downloads.

cubic-dev-ai[bot]

This comment was marked as outdated.

@jserv jserv changed the title CI: Introduce curl/wget compatibility layer CI: Introduce curl/wget compatibility commands Sep 21, 2025
This adds a universal download compatibility commands that work with
curl or wget. The download tool check was failing scripts that source
common.sh but don't use download functions (like riscv-tests.sh). This
changes to only check for curl/wget when a download function is actually
called.

This prevents unnecessary failures in scripts that source common.sh
for other utilities like PARALLEL or check_platform().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant