Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 12, 2019

This patch adds CI builds via GitHub Actions. Companion GitGitGadget-submitted patches are here: git#743.

GitHub Actions do not offer as nice a UI for the tests, which is a real downside for now. Not sure whether that's reason enough to with the Azure Pipeline we have. My gut feeling is that we should switch to GitHub Actions.

@dscho dscho force-pushed the github-action branch 7 times, most recently from 860a4e9 to 0d76f83 Compare November 12, 2019 23:29
@dscho dscho force-pushed the github-action branch 11 times, most recently from 53aee96 to dbe366c Compare March 31, 2020 10:50
dscho added 6 commits March 31, 2020 13:40
We no longer test specifically whether Git's source code builds under
`core.autoCRLF=true`, as this is already tested implicitly by our
Windows CI/PR builds.

Signed-off-by: Johannes Schindelin <[email protected]>
This should help with adding new CI-specific if-else arms.

Signed-off-by: Johannes Schindelin <[email protected]>
For each CI system we support, we need a specific arm in that if/else
construct in ci/lib.sh. Let's add one for GitHub Actions.

Signed-off-by: Johannes Schindelin <[email protected]>
This patch adds CI builds via GitHub Actions. While the underlying
technology is at least _very_ similar to that of Azure Pipelines, GitHub
Actions are much easier to set up than Azure Pipelines: no need to
install a GitHub App, no need to set up an Azure DevOps account, all you
need to do is push to your fork on GitHub.

Therefore, it makes a lot of sense for us to have a working GitHub
Actions setup.

While transmogrifying `azure-pipelines.yml` into
`.github/workflows/main.yml`, we also use the opportunity to accelerate
the step that sets up a minimal subset of Git for Windows' SDK in the
Windows-build job: we now download a `.tar.xz` stored in Azure Blobs and
extract it simultaneously (by calling `curl` and piping the result to
`tar`, decompressing via `xz`, all three utilities being available by
grace of using Git for Windows' Bash that is installed on the build
agents). This accelerates that step from ~1m50s to ~7s.

Also, we do away with the parts that try to mount a file share on which
`prove` can store data between runs. It is just too complicated to set
up, so it's little return on investment there.

Signed-off-by: Johannes Schindelin <[email protected]>
We have GitHub Actions now. Running the same builds and tests in Azure
Pipelines would be redundant, and a waste of energy.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho changed the title [TEST BALLOON] ci: use GitHub Actions ci: use GitHub Actions Mar 31, 2020
@dscho dscho requested review from kewillf and webstech March 31, 2020 12:50
@dscho
Copy link
Member Author

dscho commented Apr 7, 2020

I'll abandon this and open a PR with a branch in my personal fork instead.

@dscho dscho closed this Apr 7, 2020
@dscho dscho deleted the github-action branch April 7, 2020 00:38
@dscho
Copy link
Member Author

dscho commented Apr 7, 2020

Successor: #2577

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.

1 participant