ci: add self-contained Linux job on distro packages; guard sonarcloud for forks - #1132
Open
Danux-Be wants to merge 1 commit into
Open
ci: add self-contained Linux job on distro packages; guard sonarcloud for forks#1132Danux-Be wants to merge 1 commit into
Danux-Be wants to merge 1 commit into
Conversation
… for forks - New build-linux-native workflow builds the game and runs the test suite against distro SDL2/libnoise/OpenAL packages (apt), with no Conan and no third-party server dependencies. Mirrors a verified local build. - sonarcloud job now only runs on the upstream repository: forks lack SONAR_TOKEN and the scan step fetches a runner script from an external CDN.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two CI changes, motivated by resilience of the project's build infrastructure:
1. New self-contained Linux job:
build-linux-native.ymlBuilds the game and runs the test suite against the distro packages (apt:
libsdl2-dev,libsdl2-image-dev,libsdl2-ttf-dev,libnoise-dev,libopenal-dev,libvorbis-dev, …) — no Conan, no external servers.Rationale: the existing jobs depend on personal infrastructure (
git.anotherfoxguy.combuild-tools clone, a personal Conan remote, CDN downloads). If any of that goes away, the project loses its CI entirely. For what it's worth, on our fork the Windows conan job already fails on master's own workflow withCMake Error: Could not read presets— this native job gives the project a working, self-contained CI in the meantime.First run on a plain
ubuntu-latestrunner: Danux-Be/Cytopia #33274938804 — green in ~2m30 (configure, build, 53/53 tests withSDL_VIDEODRIVER=dummy, artifact upload).Note: this PR also triggers the new workflow here, so it should validate itself on the upstream runners. 🙂 It depends on the
FindLibNoisefixes from #1130 to find distro libnoise.2.
sonarcloud.yml: only run on the upstream repositoryForks lack the
SONAR_TOKENsecret, and the scan step downloads a runner script from an external CDN — so forks just get a red ❌ for a job they can't run. Addedif: github.repository == 'CytopiaTeam/Cytopia'to the job.Related PRs from our fork: FindLibNoise fixes, codecov opt-in,
--skipMenufix — each independent, in case you want to review/merge them separately.