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

GHA update #121

Merged
merged 6 commits into from
Mar 11, 2025
Merged

GHA update #121

merged 6 commits into from
Mar 11, 2025

Conversation

chcg
Copy link
Contributor

@chcg chcg commented Mar 7, 2025

  • publishing of windows build folder on CI builds and for releases, related to discussion at No update binaries to v0.12.2 #39
  • added macos build job
  • pcre2 10.40 updated to 10.45 for windows builds

Open topics:

@xuhdev
Copy link
Member

xuhdev commented Mar 7, 2025

Yes, if you can, please update pcre2 for windows build.

We don't publish windows build yet, but PR is welcome.

@chcg
Copy link
Contributor Author

chcg commented Mar 8, 2025

See

run: ./init.ps1 -pcre "10.40"
, so it is pretty easy to change the PCRE2 version used by the build. I will update to latest release https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.45

chcg added 4 commits March 9, 2025 07:56
- adapt artifact to contain just content of build dir
… github.ref_name which could be an invalid filename

- just the artifact name is manipulated to contain the short sha, the inner zip hasn't it
@chcg chcg force-pushed the gha_upload_artifacts branch from 8bdd9f3 to 583ff30 Compare March 9, 2025 06:57
@xuhdev
Copy link
Member

xuhdev commented Mar 9, 2025

Awesome! Is this PR ready for review? I can change the required checks accordingly.

@chcg
Copy link
Contributor Author

chcg commented Mar 10, 2025

@xuhdev PR is now ready for review

Copy link
Member

@xuhdev xuhdev left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for the improvement over the CI!

uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: editorconfig-core-c_${{ env.SHORT_SHA }}_${{ matrix.build_platform }}.zip
Copy link
Member

Choose a reason for hiding this comment

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

It's ideal if we can rename this file to include the tag here, but we can do it in a separate PR as an improvement (if it's not too hard :)).

Copy link
Member

@xuhdev xuhdev Mar 11, 2025

Choose a reason for hiding this comment

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

Sorry I misunderstood you in #121 (comment) . Based on https://github.com/softprops/action-gh-release?tab=readme-ov-file#inputs , it looks like we can just use github.ref_name to access the tag name. Do you think it's possible to rename the file when making a release?

I'm thinking about something like this before the creating release step:

- name: Rename
  if: startsWith(github.ref, 'refs/tags/')
  run: mv editorconfig-core-c_${{ env.SHORT_SHA }}_${{ matrix.build_platform }}.zip editorconfig-core-c_${{ github.ref_name }}_${{ matrix.build_platform }}.zip

(If it's still too hard, don't worry about it. It's not a big issue.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed that could be an option if adapted for powershell or cmd as it is needed for windows

@xuhdev xuhdev merged commit 0604dee into editorconfig:master Mar 11, 2025
12 checks passed
@chcg chcg deleted the gha_upload_artifacts branch March 11, 2025 20:20
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