Add Linux CI workflow with NuGet caching#146
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a basic Linux CI pipeline to validate Magma builds/tests on every change, helping catch cross-platform regressions early.
Changes:
- Introduces a GitHub Actions workflow to restore/build/test on
ubuntu-latestwith Release configuration. - Adds NuGet package caching to speed up CI runs.
- Adds a CI status badge to
README.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/ci.yml |
New Ubuntu CI workflow with NuGet caching and restore/build/test steps. |
README.md |
Adds a CI badge linking to the new workflow. |
.github/workflows/ci.yml
Outdated
| branches: [master] | ||
| pull_request: | ||
| branches: [master] |
There was a problem hiding this comment.
The workflow is configured to trigger only for the master branch, but this PR appears to target main (and many repos use main as the default branch). As written, CI may never run on pushes/PRs to the default branch. Update the on.push.branches / on.pull_request.branches filters to match the repo’s default branch (or include both main and master).
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] |
There was a problem hiding this comment.
Updated in commit 078edaf to trigger on both main and master branches for future-proofing.
|
@copilot apply changes based on the comments in this thread |
|
@copilot rebase to master and apply changes based on the comments in #146 (review) |
Co-authored-by: benaadams <1142958+benaadams@users.noreply.github.com>
3a158d4 to
beb0fcd
Compare
Changes
.github/workflows/ci.yml: Ubuntu-latest workflow with restore/build/test pipelinemainormaster, all PRsactions/setup-dotnet@v4~/.nuget/packages(keyed by csproj hashes)README.md: CI status badge added below titleWorkflow Steps
Foundation for platform-specific CI, packaging, and automated validation on every push.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.