Follow-up: Fix Tetris CI by moving to Ubuntu SFML build#2
Merged
clouds1729 merged 1 commit intoMay 17, 2026
Merged
Conversation
Owner
Author
|
@codex fix the remaining failing Tetris GitHub Actions check. The PR now has one passing check:
But GitHub is still running and failing:
Please inspect the entire .github/workflows directory and remove or disable the old Windows workflow completely. Goal:
Tasks:
name: CMake Build
runs-on: ubuntu-latest and install: sudo apt-get update
After this, the PR should only show the Ubuntu CMake Build check. |
Summary
Testing
|
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.
Motivation
SFML, so prefer a simple Ubuntu CI that installslibsfml-devfromaptto avoid brittle vcpkg/platform-specific issues.tetrisexecutable name.Description
.github/workflows/cmake-windows.ymlinto readable YAML and switched the job toruns-on: ubuntu-latestthat installscmake,g++, andlibsfml-devviaapt.CMakeLists.txtas multi-line CMake and updated SFML discovery/linking to use distro-style package names withfind_package(SFML 2.5 REQUIRED COMPONENTS graphics window system)andtarget_link_libraries(tetris PRIVATE sfml-graphics sfml-window sfml-system).README.mdbuild commands to use Release-mode configure/build (cmake -S . -B build -DCMAKE_BUILD_TYPE=Releaseandcmake --build build --config Release) and added a short CI note describing the Ubuntu approach.main.cpp, kept the executable nametetris, and retained the post-build image copy in CMake to placeimages/beside the executable.Testing
git status --shortto verify only the intended files changed, which succeeded.cmake -S . -B build -DCMAKE_BUILD_TYPE=Release, which failed in this container because SFML development files/config are not installed here (expected in this environment).git add/git commit, which succeeded; there are no repository unit tests to run.Codex Task