git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/5] Wire up Windows-based jobs in GitLab CI

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 9, 2024, 13:25 UTC
Message-ID
<cover.1728480039.git.ps@pks.im>
Hi,

there's been multiple cases where changes I did recently broke Windows systems. This was in the context of reftables, the libification refactorings and other parts. Also, with my investigation of a more modern build system I spent a ton of time in Windows overall. So it was high time that I finally wire up support for Windows jobs in GitLab CI, which is something I wanted to do for a long time.

This patch series does this with the help of Johannes. He helped me out quite significantly by starting to publish new build artifacts as part of the Git for Windows SDK pipelines that we can now easily download and use. This makes it trivial to reimplement the "setup-git-for-windows" GitHub Action as a simple PowerShell script such that both GitHub and GitLab share the same implementation.

I've created a pull request in GitHub [1] and a merge request in GitLab [2] to demonstrate that the pipelines work on both platforms.

Thanks!
Patrick

[1]: https://github.com/git/git/pull/1806 [2]: https://gitlab.com/gitlab-org/git/-/merge_requests/204

Patrick Steinhardt (5):
  t7300: work around platform-specific behaviour with long paths on
    MinGW
  ci: create script to set up Git for Windows SDK
  ci: handle Windows-based CI jobs in GitLab CI
  gitlab-ci: introduce stages and dependencies
  gitlab-ci: exercise Git on Windows
 .github/workflows/main.yml | 16 +++++++-----
 .gitlab-ci.yml             | 51 ++++++++++++++++++++++++++++++++++++++
 ci/install-sdk.ps1         | 12 +++++++++
 ci/lib.sh                  | 18 ++++++++++----
 t/t7300-clean.sh           |  2 +-
 5 files changed, 87 insertions(+), 12 deletions(-)
 create mode 100755 ci/install-sdk.ps1
-- 
2.47.0.rc1.33.g90fe3800b9.dirty
Next: Patrick Steinhardt
Message 1 of 8 in “Wire up Windows-based jobs in GitLab CI”
  1. 0/5 Wire up Windows-based jobs in GitLab CIPatrick Steinhardt, Oct 9, 2024
  2. 1/5 t7300: work around platform-specific behaviour with long paths on MinGWPatrick Steinhardt, Oct 9, 2024
  3. Junio C HamanoOct 9, 2024
  4. Patrick SteinhardtOct 10, 2024
  5. 2/5 ci: create script to set up Git for Windows SDKPatrick Steinhardt, Oct 9, 2024
  6. 3/5 ci: handle Windows-based CI jobs in GitLab CIPatrick Steinhardt, Oct 9, 2024
  7. 4/5 gitlab-ci: introduce stages and dependenciesPatrick Steinhardt, Oct 9, 2024
  8. 5/5 gitlab-ci: exercise Git on WindowsPatrick Steinhardt, Oct 9, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.