Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Add a GitHub workflow definition #156

Closed
wants to merge 2 commits into from

Conversation

dscho
Copy link

@dscho dscho commented Apr 14, 2020

With this PR, it should be a lot easier to build new installers. An example build can be found here.

Please note that this PR only builds unsigned installers for now. If this experiment goes well, we should probably look into integrating both a signing step as well as a step to upload the result to SourceForge (using their API), both contingent on the respective credentials being available as GitHub Action secrets.

@dscho
Copy link
Author

dscho commented Apr 21, 2020

Side note for lurkers: to build the installer for the latest Git, just uncomment the push: line in .github/workflows/osx-installer.yml, commit and push the result to your fork.

@dscho
Copy link
Author

dscho commented May 18, 2020

@timcharper gentle ping?

@dscho
Copy link
Author

dscho commented May 26, 2020

@timcharper another gentle ping? Would be nice to get this going in time for Git v2.27.0...

@SyntevoAlex
Copy link
Contributor

@dscho thanks for your work, I'm loving this new GitHub Action!

@dscho dscho closed this Oct 21, 2020
@dscho dscho deleted the github-workflow branch October 21, 2020 12:50
@dscho dscho restored the github-workflow branch October 21, 2020 12:50
@dscho
Copy link
Author

dscho commented Oct 21, 2020

@timcharper hi there! Long time no hear. Any news from your side?

@dscho dscho reopened this Oct 21, 2020
Copy link

@bl-ue bl-ue left a comment

Choose a reason for hiding this comment

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

Hey, @timcharper sorry if this is bothering you but do you mind taking a look at this PR? (@dscho is the maintainer for git-for-windows in case you're not aware).

@dscho dscho force-pushed the github-workflow branch 2 times, most recently from 3cdbddb to c8cbf2d Compare April 30, 2021 12:12
dscho added 2 commits May 3, 2021 15:46
It is really convenient to be able to use GitHub Actions to run
automated tasks, such as creating the Git for macOS installer.

This adds a GitHub workflow definition to do exactly that.

It can be triggered manually from the Actions tab of the
`git_osx_installer` repository on GitHub. For details, see
https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch

Alternatively, the `push:` line can be uncommented so that a simple push
triggers the workflow.

Signed-off-by: Johannes Schindelin <[email protected]>
With this change, we do not have any hard-coded fallback for the ref
anymore, but always build the latest available tagged Git version.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the github-workflow branch from c8cbf2d to 6121058 Compare May 3, 2021 13:46
Copy link
Contributor

@SyntevoAlex SyntevoAlex left a comment

Choose a reason for hiding this comment

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

Again, thanks for this GitHub action! It is really useful.

I was making another git builder for macOS and noticed a few things in your script.

CFLAGS: -I/usr/local/opt/gettext/include
# Link with cURL
CURL_LDFLAGS: -lcurl
# To make use of the catalogs...
Copy link
Contributor

@SyntevoAlex SyntevoAlex Aug 5, 2021

Choose a reason for hiding this comment

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

Instead of # To make use of the catalogs..., I suggest a more detailed wording:

Catalogs are required to build man. These are installed through docbook [1] and docbook-xsl [2] dependencies of asciidoc in homebrew.

[1] https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/asciidoc.rb#L27
[2] https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/asciidoc.rb#L26

@narutoDev
Copy link

I couldn't get this Github Action to work for me. Running it failed in the "Bundle .dmg" task with the error:
'kFSEventStreamEventFlagItemCloned' has been marked as being introduced in macOS 10.13 here, but the deployment target is macOS 10.6.0

Weirdly enough I was running the action on macos-latest wich is MacOS 12 so I really don't understand why this issue occurs. Any help would be greatly appreciated. Attached are the logs to the failed build runs on my fork.
Original Action: https://ghostbin.me/63c9c10209aec
After some attempted fixes: https://ghostbin.me/63c9c165318ec

@dscho
Copy link
Author

dscho commented Jan 25, 2023

'kFSEventStreamEventFlagItemCloned' has been marked as being introduced in macOS 10.13 here, but the deployment target is macOS 10.6.0

This error probably means that you would have to adjust https://github.com/timcharper/git_osx_installer/pull/156/files#diff-de90736762a5cf22e0cbc7531a25565f2b3a90c2e741616362a4c8d4bc4fa950R29 a bit.

As it stands, however, I cannot justify to keep this Pull Request open. There has been exactly 0 feedback from the maintainer of this repository, and my intention was to leverage the maintainer's expertise to avoid duplicating efforts in microsoft/git, where a macOS installer is built, too. Due to the lack of interest, microsoft/git has switched away from git_osx_installer in the meantime. This concludes my involvement in this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants