Skip to content

Conversation

@UnityAlex
Copy link
Collaborator

@UnityAlex UnityAlex commented Jun 30, 2025

Updates buildscripts to have the ability to push the collated mono builds.tar.zsh to stevedore.

  • Should this pull request have release notes?
    • Yes
    • No
  • Do these changes need to be back ported?
    • Yes
    • No
  • Do these changes need to be upstreamed to mono/mono or dotnet/runtime repositories?
    • Yes
    • No

Reviewers: please consider these questions as well! ❤️

@yuc434 yuc434 self-requested a review June 30, 2025 16:04
Update Publish to Stevedore to use new upload executable

Update token key used for prtools

Adding generate_artifactid script to create the file PRTools is looking for.

artifactid file is now in collectedbuilds
@UnityAlex UnityAlex force-pushed the fix-update-il2cpp-deps branch from f38410b to 9cb1664 Compare June 30, 2025 19:39
@UnityAlex UnityAlex marked this pull request as ready for review June 30, 2025 19:39
@UnityAlex UnityAlex requested a review from mostynb June 30, 2025 19:40
Comment on lines +12 to +16
- curl -sSo StevedoreUpload "$STEVEDORE_UPLOAD_TOOL_LINUX_X64_URL"
- chmod +x StevedoreUpload
- mv collectedbuilds/builds.tar.zst collectedbuilds/MonoBleedingEdge.tar.zst
- .yamato/scripts/generate_artifactid.sh collectedbuilds/MonoBleedingEdge.tar.zst
- ./StevedoreUpload --repo=unity-internal --version-len=8 --version="$GIT_REVISION" collectedbuilds/MonoBleedingEdge.tar.zst
Copy link

Choose a reason for hiding this comment

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

I think you could do all this in a compound block without the need for the generate_artifactid.sh script, eg:

Suggested change
- curl -sSo StevedoreUpload "$STEVEDORE_UPLOAD_TOOL_LINUX_X64_URL"
- chmod +x StevedoreUpload
- mv collectedbuilds/builds.tar.zst collectedbuilds/MonoBleedingEdge.tar.zst
- .yamato/scripts/generate_artifactid.sh collectedbuilds/MonoBleedingEdge.tar.zst
- ./StevedoreUpload --repo=unity-internal --version-len=8 --version="$GIT_REVISION" collectedbuilds/MonoBleedingEdge.tar.zst
- |-
set -euxo pipefail
curl -sSo StevedoreUpload "$STEVEDORE_UPLOAD_TOOL_LINUX_X64_URL"
chmod +x StevedoreUpload
mv collectedbuilds/builds.tar.zst collectedbuilds/MonoBleedingEdge.tar.zst
revision=$(git rev-parse --short HEAD)
artifactsha=$(sha256sum $1 | cut -d " " -f1)
echo "MonoBleedingEdge/${revision}_${artifactsha}.tar.zst\n" > collectedbuilds/artifactid.txt
./StevedoreUpload --repo=unity-internal --version="$revision" collectedbuilds/MonoBleedingEdge.tar.zst

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't know about compound blocks! That's pretty neat. I still think I like having the logic off in a script to keep the yamato file less busy and a bit easier to read.

Copy link

@mostynb mostynb left a comment

Choose a reason for hiding this comment

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

Up to you though. I think either way will work.

@UnityAlex UnityAlex merged commit b492717 into unity-main Jul 1, 2025
10 of 12 checks passed
@UnityAlex UnityAlex deleted the fix-update-il2cpp-deps branch July 1, 2025 12:42
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.

3 participants