Skip to content

Optimize noraneko-runtime checkout with partial clone#174

Open
Copilot wants to merge 2 commits intomainfrom
copilot/optimize-github-workflows
Open

Optimize noraneko-runtime checkout with partial clone#174
Copilot wants to merge 2 commits intomainfrom
copilot/optimize-github-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 17, 2025

The package workflow clones the full Firefox source tree from noraneko-runtime, but artifact mode only needs a subset of files. Full clone is wasteful.

Changes

  • Added fetch-depth: 1 for shallow clone (no git history)
  • Added filter: blob:none for blobless partial clone (on-demand blob fetching)
- name: Checkout ${{ github.repository }}-runtime
  uses: actions/checkout@v4
  with:
    repository: ${{ github.repository }}-runtime
    ref: ${{ steps.get-commit.outputs.commit_hash }}
    submodules: "recursive"
    fetch-depth: 1
    filter: blob:none

With blob:none, git fetches only tree/commit objects initially; blobs are downloaded on-demand when accessed. Since artifact builds don't compile from source, most source blobs are never fetched.

Original prompt

Check github workflows, and find optimal way to reduce repository size with partial cloning from noraneko-runtime. the noraneko-runtime have full Firefox source code, but in noraneko final package, it uses few scripts from the repository, so full-clone seems waste of time. so, research how to optimize the workflow.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 17, 2025
…, filter: blob:none)

Co-authored-by: nyanrus <68762426+nyanrus@users.noreply.github.com>
Copilot AI changed the title [WIP] Research optimal workflow for reducing repository size Optimize noraneko-runtime checkout with partial clone Dec 17, 2025
Copilot AI requested a review from nyanrus December 17, 2025 05:38
@nyanrus nyanrus marked this pull request as ready for review December 17, 2025 05:38
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.

2 participants