{"id":15873792,"url":"https://github.com/git-for-windows/setup-git-for-windows-sdk","last_synced_at":"2025-04-05T23:10:41.648Z","repository":{"id":37055718,"uuid":"339415497","full_name":"git-for-windows/setup-git-for-windows-sdk","owner":"git-for-windows","description":"A GitHub Action to initialize various flavors of the Git for Windows SDK","archived":false,"fork":false,"pushed_at":"2024-10-29T11:50:48.000Z","size":35270,"stargazers_count":20,"open_issues_count":4,"forks_count":17,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T13:29:08.939Z","etag":null,"topics":["actions","github-action"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-for-windows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-16T13:56:28.000Z","updated_at":"2024-10-29T11:50:50.000Z","dependencies_parsed_at":"2024-01-15T14:08:44.441Z","dependency_job_id":"88408d05-6af0-43bc-bf3e-8e2e03e4abca","html_url":"https://github.com/git-for-windows/setup-git-for-windows-sdk","commit_stats":{"total_commits":1151,"total_committers":7,"mean_commits":"164.42857142857142","dds":0.1972198088618593,"last_synced_commit":"cd04e99577e234cbb7ef0d8ff708102168610ff1"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fsetup-git-for-windows-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fsetup-git-for-windows-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fsetup-git-for-windows-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-for-windows%2Fsetup-git-for-windows-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-for-windows","download_url":"https://codeload.github.com/git-for-windows/setup-git-for-windows-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411235,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-action"],"created_at":"2024-10-06T01:06:39.122Z","updated_at":"2025-04-05T23:10:41.629Z","avatar_url":"https://github.com/git-for-windows.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Set up a Git for Windows SDK (or a subset thereof)\n\nUse this Action to initialize an environment to develop Git for Windows.\n\n## Getting Started\n\n```yaml\nname: Build stuff in Git for Windows' SDK\non: [push]\njobs:\n  build:\n    runs-on: windows-latest\n    steps:\n    - uses: actions/checkout@v3\n    - name: Setup Git for Windows' minimal SDK\n      uses: git-for-windows/setup-git-for-windows-sdk@v1\n    - name: Build\n      shell: bash\n      run: make\n```\n\n## Input parameters\n\n### Available flavors\n\nThis Action supports several flavors (read: subsets) of the Git for Windows SDK that can be configured like this:\n\n```yaml\n- uses: git-for-windows/setup-git-for-windows-sdk\n  with:\n    flavor: build-installers\n```\n\nThe supported flavors are:\n\n- `minimal`:\n\n  This is the most useful flavor to build Git for Windows' source code and run its own test suite. Only available for x86_64.\n\n- `makepkg-git`:\n\n  This flavor allows packaging `mingw-w64-git`, the Pacman package. It is only available for x86_64 but can be used to \"cross-compile\" for i686.\n\n- `build-installers`:\n\n  In addition to building `mingw-w64-git`, this flavor allows bundling Git for Windows' artifacts such as the installer and the Portable Git.\n\n- `full`:\n\n  This is the \"full\" SDK, [as users would install it](https://gitforwindows.org/#download-sdk), with a pre-selected set of packages pre-installed. Additional packages can be installed via `pacman -S \u003cpackage\u003e`.\n\n### CPU architecture support\n\nGit for Windows SDK comes in variants targeting `x86_64` (AKA \"64-bit\"), `i686` (AKA 32-bit) and  `aarch64` (AKA arm64). The default is `x86_64` and can be overridden like this:\n\n```yaml\n- uses: git-for-windows/setup-git-for-windows-sdk\n  with:\n    flavor: build-installers\n    architecture: i686\n```\n\nPlease note that only the `build-installers` and the `full` flavors are available for `i686`.\n\n### Verbosity\n\nBy default, this Action prints a line whenever 250 items were extracted (this does not work for the `full` flavor, where this Action is silent by default). It can be overridden by setting the input parameter `verbose`; setting it to a number will show updates whenever that many items were extracted. Setting it to `false` will suppress progress updates. Setting it to `true` will print every extracted file (this also works for the `full` flavor).\n\n### Caching\n\nTo accelerate this Action, artifacts are cached once downloaded. This can be turned off by setting the input parameter `cache` to `false`.\n\nIn practice, caching the `full` artifacts does not provide much of a speed-up. Instead, it slows it down by spending extra minutes on caching the artifact. Therefore, caching is disabled for the `full` artifacts by default, corresponding to `cache: auto`.\n\n### Clean-up\n\nOn self-hosted runners, the SDK files persist after the workflow run is done. To remove these files, set the input parameter `cleanup` to `true`.\n\n## Developing _this_ Action\n\n\u003e First, you'll need to have a reasonably modern version of `node` handy, such as Node 12.\n\nInstall the dependencies\n\n```bash\n$ npm install\n```\n\nBuild the Action and package it for distribution\n\n```bash\n$ npm run build \u0026\u0026 npm run package\n```\n\nRun the tests :heavy_check_mark:\n\n```bash\n$ npm test\n\n\u003e setup-git-for-windows-sdk@0.0.0 test C:\\Users\\me\\setup-git-for-windows-sdk\n\u003e jest\n\nPASS __tests__/main.test.ts (28.869 s)\n  √ skipping tests requiring network access (224 ms)\n\n  console.log\n    If you want to run tests that access the network, set:\n    export RUN_NETWORK_TESTS=true\n\n      at __tests__/main.test.ts:26:13\n\nPASS __tests__/downloader.test.ts (29.889 s)\n  √ can obtain build ID (9 ms)\n\nTest Suites: 2 passed, 2 total\nTests:       2 passed, 2 total\nSnapshots:   0 total\nTime:        31.11 s\nRan all test suites.\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-for-windows%2Fsetup-git-for-windows-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-for-windows%2Fsetup-git-for-windows-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-for-windows%2Fsetup-git-for-windows-sdk/lists"}