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

Automating the vcpkg registry #13

Closed
ThirdEyeSqueegee opened this issue Sep 8, 2023 · 2 comments · Fixed by #20
Closed

Automating the vcpkg registry #13

ThirdEyeSqueegee opened this issue Sep 8, 2023 · 2 comments · Fixed by #20
Labels
enhancement New feature or request

Comments

@ThirdEyeSqueegee
Copy link
Member

you'll need to copy the vcpkg.json file into the vcpkg repo, as well as update the git commit and hash of the file content in the portfile, commit, then rev-parse and amend commit with the additions to versions, then do the final push

you could also just update the version-date in the vcpkg.json file in the vcpkg repo after copying. what it is in the clibsf repo doesn't really matter

i'd also suggest adding github actions to the vcpkg repo itself. so the clibsf repo action makes it changes and pushes a new branch, then the vcpkg-repo runs its own action which validates that using a port-overlay against the clibsf repo, before merging to master

@ThirdEyeSqueegee
Copy link
Member Author

ThirdEyeSqueegee commented Sep 8, 2023

Steps for action:

  1. Set REF to the hash of the latest commit in the CommonLibSF repo in portfile.cmake
  2. Set SHA512 to 0 in portfile.cmake
  3. Run vcpkg install commonlibsf --overlay-ports=ports/commonlibsf --triplet x64-windows
  4. Parse the output and retrieve the SHA for the latest build of CommonLibSF
  5. Set SHA512 to the SHA obtained in step 3 in portfile.cmake
  6. Create a new version entry in versions/c-/commonlibsf.json
  7. Update the baseline with the latest version in versions/baseline.json
  8. Run git add . and create a temp commit with git commit -m "temp commit"
  9. Run git rev-parse HEAD:ports/commonlibsf
  10. Set git-tree in versions/c-/commonlibsf.json to the hash obtained in step 9
  11. Run git commit --amend "<commit message>" and push changes

@ThirdEyeSqueegee
Copy link
Member Author

Related: #17

ThirdEyeSqueegee pushed a commit that referenced this issue Sep 8, 2023
This is for
https://github.com/Starfield-Reverse-Engineering/Starfield-RE-vcpkg/pull/1
Also made the Maintenance script manually dispatchable.

closes #13

---------

Co-authored-by: maintenance <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant