-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
git-artifacts: add ARM64 artifacts #3017
Conversation
1fffb92
to
6bb1f51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple suggestions how we could potentially fix this, but I think we first need that build-extra PR.
5da7f80
to
0f8e66c
Compare
@dscho applied your suggestions - hope we're good to go now! 😊 Successful run: https://github.com/dennisameling/git/actions/runs/543959657 |
0f8e66c
to
98fdd1e
Compare
@dscho fixed -
|
Hmm. If we built with |
Like this? Looks like that works as well: https://github.com/dennisameling/git/runs/1849261988?check_suite_focus=true Don't we need to do this in the other, already existing workflow then ( |
Yes, please!
Very good point! We even need it in git/git, not only in git-for-windows/git. |
d1b7162
to
7e41cc8
Compare
Alright, just squashed the commits. Think we're good to go here, @dscho! Actions run: https://github.com/dennisameling/git/actions/runs/550766092
Will do this later today 👍🏼 |
Done in #3040, sorry for the delay! |
.github/workflows/git-artifacts.yml
Outdated
@@ -388,7 +448,8 @@ jobs: | |||
run: | | |||
& .\git-sdk-${{matrix.arch.bitness}}-build-installers\usr\bin\bash.exe -lc @" | |||
set -x | |||
/usr/src/build-extra/please.sh make_installers_from_mingw_w64_git --version=`$(cat pkg-${{matrix.arch.name}}/ver) -o artifacts --${{matrix.artifact.name}} --pkg=pkg-${{matrix.arch.name}}/mingw-w64-${{matrix.arch.name}}-git-[0-9]*.tar.xz --pkg=pkg-${{matrix.arch.name}}/mingw-w64-${{matrix.arch.name}}-git-doc-html-[0-9]*.tar.xz && | |||
[[ \"${{matrix.arch.arm64}}\" = true ]] && ARM64=\"--include-arm64-artifacts=\"`$PWD/arm64\"\" || ARM64= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those quotes should not be escaped, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, forget what I said, this is inside a PowerShell step. But that means that there needs to be extra quoting around the path, like so:
[[ \"${{matrix.arch.arm64}}\" = true ]] && ARM64=\"--include-arm64-artifacts=\"`$PWD/arm64\"\" || ARM64= | |
[[ \"${{matrix.arch.arm64}}\" = true ]] && ARM64=\"--include-arm64-artifacts=\\\"`$PWD/arm64\\\"\" || ARM64= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. It worked without the quotes, but with the quotes it breaks the installer build: https://github.com/dennisameling/git/runs/1881018607?check_suite_focus=true
Looks like we need to tweak the release.sh
script in build-extra/installer
a bit. Will have a look tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks really neat now, just the one quoting fix (which does not matter that much in practice right now because $PWD
expands to a path without spaces).
Adds ARM64 artifacts to the git-artifacts GitHub Action workflow. Signed-off-by: Dennis Ameling <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
d013398
to
ab950ae
Compare
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
…artifacts git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
git-artifacts: add ARM64 artifacts
Adds the ARM64 artifacts to the
git-artifacts
GH Actions workflow 🚀Full run: https://github.com/dennisameling/git/actions/runs/537829979
One thing I noticed is that the ARM64 artifacts are significantly larger than the others. There might be some things we can enable on the MSVC-size to have it generate smaller binaries, but I'm not familiar enough with that toolchain to know how to do that.