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
@jserv jserv force-pushed the download-script branch 2 times, most recently from 477ad03 to d9c5026 Compare September 21, 2025 16:04
@jserv jserv changed the title CI: Introduce curl/wget compatibility commands CI: Add curl-or-wget wrapper and shared download functions 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().
@jserv jserv merged commit 4b61b26 into master Sep 22, 2025
21 of 24 checks passed
@jserv jserv deleted the download-script branch September 22, 2025 17:08
@jserv jserv added this to the release-2025.2 milestone Oct 1, 2025
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