Skip to content

ci: replace SourceKnight with native GitHub Actions workflow - #22

Merged
Rushaway merged 1 commit into
masterfrom
chore/drop-sourceknight
Aug 18, 2026
Merged

ci: replace SourceKnight with native GitHub Actions workflow#22
Rushaway merged 1 commit into
masterfrom
chore/drop-sourceknight

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

This repo already had a mostly-native GitHub Actions build (.github/workflows/build.yml), but dependency/version metadata still lived in sourceknight.yaml. This PR replaces it with the standard ci.yml workflow used across the org-wide SourceKnight migration (same job structure, tag/release logic, and action pins as the validated srcdslab/sm-plugin-AdminRoom template), removes sourceknight.yaml, and cleans up the remaining references to SourceKnight in .gitignore and .github/copilot-instructions.md.

The old build.yml compiled against a 1.11.x/1.12.x matrix with continue-on-error on 1.12; the new workflow standardizes on SourceMod 1.12 (the version declared in sourceknight.yaml), matching every other migrated repo.

Plugins compiled

Target Source file Output
VIP_Core addons/sourcemod/scripting/VIP_Core.sp VIP_Core.smx

Dependencies cloned

None. sourceknight.yaml declared only the sourcemod type: tar runtime dependency (version 1.12), which is handled by rumblefrog/setup-sp. There are no type: git dependencies — the plugin's only include (vip_core.inc) is local to the repo at addons/sourcemod/scripting/include/.

No common/ folder exists at the repo root, so nothing extra is bundled into the release package.

Local validation performed

Compiled the real target locally with a version-matched SourceMod 1.12 spcomp binary, replicating the generated CI build step exactly:

cd addons/sourcemod/scripting
mkdir -p ../plugins
spcomp -i include -o ../plugins/VIP_Core.smx VIP_Core.sp

Result: compiled successfully with no errors or warnings, producing VIP_Core.smx.

Manual verification needed

  • The previous workflow compiled against both SM 1.11.x and 1.12.x (with 1.12 marked continue-on-error). This PR standardizes on 1.12 only, matching the version pinned in sourceknight.yaml and the org's template. If 1.11 compatibility is still required, that should be reconsidered separately.
  • README.md contains a build badge pointing at github.com/R1KO/VIP-Core (an upstream fork), not srcdslab/sm-plugin-VIP-Core. It does not reference SourceKnight, so it was left untouched, but it looks stale/incorrect independent of this migration — flagging for a human to decide whether to fix it.

Copilot AI lite review requested due to automatic review settings August 16, 2026 23:42

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 completes the SourceKnight-to-native GitHub Actions migration for VIP Core by removing sourceknight.yaml and consolidating build/tag/release behavior into a single org-standard ci.yml workflow, while cleaning up remaining SourceKnight references in repo metadata/docs.

Changes:

  • Added a new .github/workflows/ci.yml workflow that builds with SourceMod 1.12.x and handles latest tagging + release packaging.
  • Removed legacy build configuration (sourceknight.yaml and .github/workflows/build.yml) and cleaned up .gitignore.
  • Updated .github/copilot-instructions.md to reflect the new CI workflow and build command.

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
sourceknight.yaml Removed SourceKnight metadata now superseded by native GitHub Actions.
.gitignore Removed .sourceknight ignore entry.
.github/workflows/ci.yml Introduced standardized CI build + tag + release workflow.
.github/workflows/build.yml Removed the old matrix-based build/release workflow.
.github/copilot-instructions.md Updated documentation to reference the new workflow/build command.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/ci.yml
Comment on lines +25 to +30
- name: Create package
run: |
set -euo pipefail
mkdir -p /tmp/package/addons/sourcemod/plugins
cp addons/sourcemod/plugins/*.smx /tmp/package/addons/sourcemod/plugins/

Comment thread .github/workflows/ci.yml
Comment on lines +3 to +5
on: [push, pull_request, workflow_dispatch]

jobs:
Comment on lines +48 to +50
- **CI/CD**: GitHub Actions (`.github/workflows/ci.yml`)
- **Dependency Management**: none (no external SourcePawn include dependencies beyond SourceMod itself)
- **Compilation**: `spcomp -i include -o ../plugins/VIP_Core.smx VIP_Core.sp`
@Rushaway
Rushaway force-pushed the chore/drop-sourceknight branch from 1b0a088 to deda216 Compare August 18, 2026 11:16
@Rushaway
Rushaway force-pushed the chore/drop-sourceknight branch from deda216 to 4aca609 Compare August 18, 2026 11:20
@Rushaway
Rushaway merged commit df8dd8e into master Aug 18, 2026
6 checks passed
@Rushaway
Rushaway deleted the chore/drop-sourceknight branch August 18, 2026 11:28
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.

3 participants