Skip to content

[repo-assist] eng: add NuGet package caching and job timeout to CI workflows #218

Description

@github-actions

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds NuGet package restore caching and a job-level timeout to both ci.yml and publish.yml.

Changes

  • actions/cache@v4 step before Restore dependencies in both workflows, caching ~/.nuget/packages keyed on Directory.Packages.props + all *.csproj files. A cache hit skips the NuGet download entirely (typically saves 10–30 s per run).
  • timeout-minutes: 15 on each job. Prevents CI from hanging indefinitely if a test, pack, or publish step stalls — currently there is no guard against infinite waits.

Rationale

These are low-risk, zero-source-code changes that improve CI reliability and speed. NuGet caching is a standard best practice for .NET CI workflows. The timeout is a safety net that has no effect on normal runs.

Test Status

✅ Build succeeded — 0 warnings, 0 errors
✅ Tests passed — 1426/1426
No source code changes; behaviour is unaffected.


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 28797378858 -n agent -D /tmp/agent-28797378858

# Create a new branch
git checkout -b repo-assist/eng-ci-cache-timeout-2026-07-06-970582e67da24dd1 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-28797378858/aw-repo-assist-eng-ci-cache-timeout-2026-07-06.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-ci-cache-timeout-2026-07-06-970582e67da24dd1
gh pr create --title '[repo-assist] eng: add NuGet package caching and job timeout to CI workflows' --base main --head repo-assist/eng-ci-cache-timeout-2026-07-06-970582e67da24dd1 --repo NichUK/FixedPointNano

Generated by 🌈 Repo Assist, see workflow run. Learn more.

Add this agentic workflows to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@e15e57b40918dbca11b350c55d02ab61934afa75

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions