Skip to content

Update for self hosted runners#22

Open
ChrisJTaylor wants to merge 7 commits into
mainfrom
update-for-self-hosted-runners
Open

Update for self hosted runners#22
ChrisJTaylor wants to merge 7 commits into
mainfrom
update-for-self-hosted-runners

Conversation

@ChrisJTaylor

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 4, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the CI/CD infrastructure from GitHub-hosted runners to self-hosted runners with Nix flakes, providing a more reproducible and consistent development environment.

Key Changes:

  • Replaced shell.nix with flake.nix for better dependency management and reproducibility
  • Updated CI workflow to use self-hosted runners with the nix label
  • Added new justfile commands to support CI operations (test-all, parameterized package)

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
shell.nix Removed legacy Nix shell configuration in favor of flakes
flake.nix Added modern Nix flake configuration with .NET 6 and 8 SDKs, development tools, and environment setup
flake.lock Added lock file for reproducible Nix flake builds
justfile Added test-all command for CI mode testing and parameterized the package command with version support
.github/workflows/ci.yml Updated workflow to use self-hosted Nix runners, wrapped all commands with nix develop -c, and adjusted artifact paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flake.nix
Comment on lines +14 to +16
config.permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
];

Copilot AI Jan 4, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration explicitly permits an insecure package (dotnet-sdk-6.0.428). This could pose security risks. Consider upgrading to a newer, secure version of the .NET 6 SDK, or document why this specific version is required if it's necessary for compatibility reasons.

Suggested change
config.permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
];

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml
- name: Publish to GitHub Packages
if: ${{ !env.ACT}}
run: dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}
run: nix develop -c dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}

Copilot AI Jan 4, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifact path is inconsistent with the pack command. The pack command now outputs to './artifacts' (line 95), but this publish step still references './nupkg'. This will cause the publish step to fail as it won't find the packages in the expected location.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml
run: nix develop -c just add-github-nuget-source ${{ github.actor }} ${{ secrets.GITHUB_TOKEN }} ${{ github.repository_owner }}

- name: Publish to GitHub Packages
if: ${{ !env.ACT}}

Copilot AI Jan 4, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a missing space in the conditional expression. It should be '${{ !env.ACT }}' instead of '${{ !env.ACT}}' (note the space before the closing braces) to maintain consistency with the pattern used in line 69.

Copilot uses AI. Check for mistakes.
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