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

PECL release follow up #90

Merged
merged 76 commits into from Mar 15, 2023
Merged

PECL release follow up #90

merged 76 commits into from Mar 15, 2023

Conversation

TingDaoK
Copy link
Contributor

@TingDaoK TingDaoK commented Mar 1, 2023

  • When a release cut, an action will do all the job, and you will need to go to github actions and find the right workflow to get the PECL package created.
  • In the near future, we should automate the release process to publish to pecl

PECL release issue again:

  • Published to PECL with the help from @sdavtaker and found out issues...

    • No idea why the later version doesn't use the right src directory to config cmake.
    • Still, the awscrt.stub.php was ignored by PECL
  • My assumption, as I cannot find anything about how PECL really build your package:

    • Mark awscrt.stub.php as src instead of script
  • Checked the version we published before and found the Makefile we had changed a lot with the srcdir and builddir from phpize and configure. So, adapt that change here.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@TingDaoK TingDaoK marked this pull request as ready for review March 1, 2023 22:26
@TingDaoK TingDaoK mentioned this pull request Mar 1, 2023
Base automatically changed from composer-update-2 to main March 2, 2023 00:18
@TingDaoK TingDaoK changed the title Auto release PECL release follow up Mar 13, 2023
ext/crt.c Outdated
@@ -263,6 +263,8 @@ static PHP_GINIT_FUNCTION(awscrt) {
awscrt_globals->log_level = 0;
}

#define CRT_VERSION "0.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is obviously not the proper version ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it's not. I was hoping to automate the release process and update this to real version here

@TingDaoK TingDaoK merged commit c4ea24d into main Mar 15, 2023
@TingDaoK TingDaoK deleted the auto-release branch March 15, 2023 23:52
@@ -263,6 +263,8 @@ static PHP_GINIT_FUNCTION(awscrt) {
awscrt_globals->log_level = 0;
}

#define CRT_VERSION "1.0.4"

Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend you use the normalized PHP_AWSCRT_VERSION macro name, and define it in some header in package root directory, so this version will be checked by pecl during upload

See https://github.com/php/web-pecl/blob/master/public_html/release-upload.php#L140

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.

None yet

4 participants