Skip to content

GH Actions: change PHAR building to reusable workflow#185

Merged
jrfnl merged 1 commit intodevelopfrom
feature/ghactions-split-off-phar-building
Mar 6, 2026
Merged

GH Actions: change PHAR building to reusable workflow#185
jrfnl merged 1 commit intodevelopfrom
feature/ghactions-split-off-phar-building

Conversation

@jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Sep 20, 2025

The workflows currently contain two jobs which build the PHAR files. This means that any changes to the steps in these jobs have to be made in two places.

With this in mind, it makes sense to change the PHAR building to a reusable workflow, which can then be used by both jobs. With this change, any changes to the steps of the job will only need to be made in one place.

This commit makes it so.

@jrfnl jrfnl added this to the 1.4.x Next milestone Sep 20, 2025
@jrfnl
Copy link
Collaborator Author

jrfnl commented Sep 20, 2025

Note: the branch protection will need a small update for the changed job name.

@jrfnl jrfnl force-pushed the feature/ghactions-split-off-phar-building branch from 09e6ada to 4c61b75 Compare October 27, 2025 23:37
@jrfnl

This comment was marked as outdated.

@jrfnl jrfnl requested a review from grogy November 18, 2025 19:59
@jrfnl jrfnl force-pushed the feature/ghactions-split-off-phar-building branch from 4c61b75 to c630168 Compare November 25, 2025 00:12
@jrfnl

This comment was marked as outdated.

@jrfnl jrfnl force-pushed the feature/ghactions-split-off-phar-building branch from c630168 to a486187 Compare December 8, 2025 19:43
@jrfnl

This comment was marked as outdated.

@jrfnl jrfnl force-pushed the feature/ghactions-split-off-phar-building branch from a486187 to 312baf6 Compare December 15, 2025 21:03
@jrfnl jrfnl mentioned this pull request Feb 25, 2026
20 tasks
The workflows currently contain two jobs which build the PHAR files.
This means that any changes to the steps in these jobs have to be made in two places.

With this in mind, it makes sense to change the PHAR building to a reusable workflow, which can then be used by both jobs.
With this change, any changes to the steps of the job will only need to be made in one place.

This commit makes it so.
@jrfnl jrfnl force-pushed the feature/ghactions-split-off-phar-building branch from 312baf6 to 5bd7853 Compare March 6, 2026 02:05
@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 6, 2026

Rebased to solve merge conflicts. No functional changes.

@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 6, 2026

As this PR has been open for six months now and it's only a maintenance/CI change, I'm taking the liberty to merge this without review.

@jrfnl jrfnl merged commit 6f7edbf into develop Mar 6, 2026
19 checks passed
@jrfnl jrfnl deleted the feature/ghactions-split-off-phar-building branch March 6, 2026 02:09
# Note: do NOT turn on the requirement checker in the box config as it is no longer
# compatible with PHP < 7.2.
- name: Install Box
run: wget https://github.com/box-project/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side-note: might be worth caching it.

You could check https://github.com/box-project/box/releases/latest for which the header location gives the tag (e.g. https://github.com/box-project/box/releases/tag/4.6.10) and use that version as the cache key

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theofidry Good point! I'll open an issue as a reminder to look into this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants