Skip to content

fix: shim uniform redefinitions and release ZIP not attaching#6

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/shim-redefinitions-and-release-zip
Apr 26, 2026
Merged

fix: shim uniform redefinitions and release ZIP not attaching#6
TheMeinerLP merged 1 commit into
mainfrom
fix/shim-redefinitions-and-release-zip

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Owner

Tier-2 GLSL shim — uniform redefinition errors

Some shader files declare their own uniforms (colortex0, gtexture, lightmap, frameTimeCounter, …). The shim was declaring the same ones, causing redefinition errors on every validation run.

Fix: the Python preprocessor now scans the inlined shader source for already-declared uniform names and drops those lines from the shim before concatenating. No hardcoded exclusion list needed — works automatically for any future shader additions.

Release ZIP not attaching

release.yml was triggered by on: release: types: [published], but GitHub does not fire workflow events for releases created by GITHUB_TOKEN (the token release-please uses). The ZIP job never ran.

Fix: moved the packaging step directly into release-please.yml as a dependent job — it runs in the same workflow immediately after release_created == true, using the tag_name output. The now-redundant release.yml is removed.

Tier-2 shim:
- Preprocessor now filters shim uniforms that the shader already
  declares itself (colortex0, gtexture, lightmap, etc.) — prevents
  redefinition errors without hardcoding an exclusion list

Release ZIP:
- release.yml trigger (release: published) does not fire for releases
  created by GITHUB_TOKEN — this is a GitHub limitation
- Moved ZIP packaging into release-please.yml as a dependent job that
  runs when release_created == true, using the tag_name output directly
- Removed the now-redundant release.yml
@TheMeinerLP TheMeinerLP merged commit 5525e8a into main Apr 26, 2026
3 checks passed
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.

1 participant