Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Speed up rust builds by enabling sccache caching for cargo-pgrx builds in GitHub Actions. We mount a persistent disk at /var/cache/sccache and configure sccache to use it.
e64624d to
33c6f0a
Compare
…he keys - Add sccache to buildPgrxExtension.nix nativeBuildInputs - Enable sccache conditionally when /nix/var/cache/sccache is available - Configure Nix with auto-allocate-uids and max-jobs=1 for consistent UID mapping - Add cache_key field to github-matrix output for stickydisk grouping - Fix postgresql_version extraction for packages with extra path levels - Use per-postgres-version cache keys to reduce stickydisk conflicts - Chown cache to UID 872415232 (auto-allocate-uids base) before builds
Add max-jobs input parameter with empty default. When set, includes max-jobs in nix config. auto-allocate-uids and use-cgroups are now only enabled when enable-sccache-sandbox-path is true.
Only mount stickydisk, enable sccache sandbox path, and set max-jobs=1 for packages with postgresql_version (extension packages). Non-extension packages build without sccache and with default max-jobs.
…y in CI To be able to build extensions versions packages separately in CI, we expose them in a nested structure. We did this change in the past for wrappers packages. Now we do the same for pg_graphql and pg_jsonschema extension packages.
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.
Speed up rust builds by enabling sccache caching for cargo-pgrx builds in GitHub Actions. We mount a persistent disk at /var/cache/sccache and configure sccache to use it.