Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite of "deploy" command to use new phar generation #179

Closed
5 tasks done
stloyd opened this issue Sep 12, 2023 · 0 comments · Fixed by #184
Closed
5 tasks done

Rewrite of "deploy" command to use new phar generation #179

stloyd opened this issue Sep 12, 2023 · 0 comments · Fixed by #184
Labels
enhancement New feature or request kind/workflow Issues related to workflow or environment

Comments

@stloyd
Copy link
Contributor

stloyd commented Sep 12, 2023

After introducing box (#175), it is a good choice to directly rewrite DeployCommand. Ideally, we can automatically package single executable SPC files for different platforms and upload them when releasing a new version:

Roadmap:

  • Use the command bin/spc download --all to download dependencies
  • Compile the phpmicro SAPI with minimal extension required by static-php-cli itself: bin/spc build pcntl,posix,mbstring,tokenizer,phar --build-micro
  • Package project: vendor/bin/box compile
  • Generate executable binary: bin/spc micro:combine spc.phar
  • Upload to release artifacts: spc-macos-x86_64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/workflow Issues related to workflow or environment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants