Skip to content

Cache PostgreSQL package downloads - #71

Open
ikalnytskyi wants to merge 1 commit into
masterfrom
feat/cache
Open

Cache PostgreSQL package downloads#71
ikalnytskyi wants to merge 1 commit into
masterfrom
feat/cache

Conversation

@ikalnytskyi

Copy link
Copy Markdown
Owner

PostgreSQL packages are downloaded from upstream repositories on every action invocation. These downloads account for a significant portion of the setup time and are redundant when the package version has not changed. They are not always reliable either: Chocolatey, for example, frequently fails to download the PostgreSQL installer. So we better cache these downloads to make subsequent runs faster and more reliable.

Since package updates retain the same PostgreSQL major version, rotate cache keys weekly to allow updated packages to be cached for the same platform and PostgreSQL version.

Comment thread action.yml Fixed
@ikalnytskyi
ikalnytskyi force-pushed the feat/cache branch 5 times, most recently from e834b75 to 632b2f0 Compare August 1, 2026 22:07
PostgreSQL packages are downloaded from upstream repositories on every
action invocation. These downloads account for a significant portion of
the setup time and are redundant when the package version has not
changed. They are not always reliable either: Chocolatey, for example,
frequently fails to download the PostgreSQL installer. So we better
cache these downloads to make subsequent runs faster and more reliable.

Since package updates retain the same PostgreSQL major version, rotate
cache keys weekly to allow updated packages to be cached for the same
platform and PostgreSQL version.
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.

2 participants