[CI] Fix build workflows and stale CI references - #472
Merged
Conversation
Up to standards ✅🟢 Issues
|
The runner context is not available in jobs.<job_id>.env, so ${{ runner.temp }}
there makes the whole workflow file invalid and GitHub refuses to run it.
BUILD_DIR is never handed to actions/cache, so it does not need to avoid '..';
only CCACHE_DIR and SCCACHE_DIR did, and those stay removed.
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.
Three independent defects in the GitHub Actions build workflows. No AppVeyor configuration is touched.
1. Six configure flags are silently discarded.
The
Configurestep uses a YAML folded scalar (run: >), which joins every line into a single shell command. bash then treats the embedded#comment — and everything after it — as a comment, so these never reach cmake:Confirmed in the job logs: the configure summary prints
Support for SOAP : No (default)despite-DSOAP=1being written. Fixed by moving the comment above the step; the comment's meaning is unchanged andrun: >is kept.2. The compiler cache has never persisted.
CCACHE_DIR/SCCACHE_DIRcontained.., whichactions/cacherejects at save time:Every subsequent run reports
No cache foundand rebuilds cold. Measured hit rates: ccache 1.5–1.9%, sccache 0.00%. The overrides are removed soccache-actionmanages its own directory.BUILD_DIRmoves to${{ runner.temp }}rather than being deleted — it must stay outside the workspace or the "Verify the working tree is clean" step fails.3. Stale CI references.
The README links
core_build.yml, which does not exist; the workflow iscore_linux_build.yml.Verification: each workflow was parsed with PyYAML and the
Configurestep folded exactly as the shell receives it, asserting no#survives, all six flags are present, and no..remains in the command or in any job-levelenv.This change is