git-for-windows / git-for-windows-automation

A few GitHub workflows and support code to help with Git for Windows' day-to-day tasks
10 stars 9 forks source link

build-and-deploy: add support for arm64 builds #4

Closed dennisameling closed 1 year ago

dennisameling commented 1 year ago

Note that this only works for self-hosted runners. GitHub Actions will pick up and use the first available arm64 runner.

Here's a successful run for mingw-w64-openssl on aarch64: https://github.com/dennisameling/git-for-windows-automation/actions/runs/3735260060/jobs/6338362688. Note that I had to do some manual fixes as the pipeline assumes it has a GitHub app (GH_APP_ID and GH_APP_PRIVATE_KEY) at its disposal. In my run, I simply replaced that with a PAT by doing const accessToken = ${{ secrets.DENNIS_PAT }}

dscho commented 1 year ago

image

Now I'm going to start the VM.

dscho commented 1 year ago

So exciting!!!

image

dennisameling commented 1 year ago

Yay!!!! So exciting indeed! 🚀

dscho commented 1 year ago

Ah... It failed because pacman needed to be upgraded. Let me see whether I can easily fix the sync workflow (running it manually did not work because the job was skipped).

dscho commented 1 year ago

Let me see whether I can easily fix the sync workflow

Finally it worked.

dscho commented 1 year ago

What did not work was the GPG step. I will have to leave it at that, for now.

dennisameling commented 1 year ago

Oh my 😅 that commit history looks really similar to my mess from testing yesterday haha. Thank you so much for going through that! I know it can be a total pain!

Let's say if I had some time next week and wanted to kick off the build-and-deploy pipeline for arm64 to build some of the packages (git-lfs, git-credential-manager, etc.) for the git-sdk-arm64, how would I go about that? I would either need:

WDYT?

image

dennisameling commented 1 year ago

What did not work was the GPG step. I will have to leave it at that, for now.

Fixed in https://github.com/git-for-windows/git-for-windows-automation/pull/8 👍🏼

dscho commented 1 year ago

The fruit of all of your labor: https://wingit.blob.core.windows.net/aarch64/git-for-windows-aarch64.db