{"id":13610667,"url":"https://github.com/goto-bus-stop/setup-zig","last_synced_at":"2025-03-31T06:07:26.774Z","repository":{"id":39758628,"uuid":"212984112","full_name":"goto-bus-stop/setup-zig","owner":"goto-bus-stop","description":"use a @ziglang compiler in your github actions workflows","archived":false,"fork":false,"pushed_at":"2024-03-23T23:41:05.000Z","size":661,"stargazers_count":129,"open_issues_count":10,"forks_count":14,"subscribers_count":8,"default_branch":"default","last_synced_at":"2024-04-14T07:46:37.801Z","etag":null,"topics":["actions","github-action","github-actions","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goto-bus-stop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-10-05T10:53:59.000Z","updated_at":"2024-04-17T03:50:21.127Z","dependencies_parsed_at":"2024-04-17T03:50:16.773Z","dependency_job_id":"83bb61ce-f048-4772-96d2-d76dd36d8912","html_url":"https://github.com/goto-bus-stop/setup-zig","commit_stats":{"total_commits":92,"total_committers":6,"mean_commits":"15.333333333333334","dds":0.3369565217391305,"last_synced_commit":"ddee6faec68064ce4dde908bf22c2a2d0fc7c0c9"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fsetup-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fsetup-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fsetup-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fsetup-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goto-bus-stop","download_url":"https://codeload.github.com/goto-bus-stop/setup-zig/tar.gz/refs/heads/default","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423731,"owners_count":20774820,"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","github-actions","zig","ziglang"],"created_at":"2024-08-01T19:01:46.898Z","updated_at":"2025-03-31T06:07:26.750Z","avatar_url":"https://github.com/goto-bus-stop.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Tools","Development Tools"],"sub_categories":["Package and Version Manager"],"readme":"# setup-zig\n\nUse the zig compiler in your Github Actions workflows\n\n\u003e [!WARNING]\n\u003e This GitHub Action is unmaintained. Please use [mlugg/setup-zig](https://github.com/mlugg/setup-zig) instead.\n\n[Usage](#usage) - [License: Apache-2.0](#license)\n\n## Usage\n\nIn a Github Actions workflow file, do something like:\n\n```yaml\njobs:\n  test:\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n    runs-on: ${{matrix.os}}\n    steps:\n      - uses: actions/checkout@v2\n      - uses: goto-bus-stop/setup-zig@v2\n      - run: zig build test\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: goto-bus-stop/setup-zig@v2\n      - run: zig fmt --check .\n```\n\nOptionally set a Zig version:\n```yaml\n- uses: goto-bus-stop/setup-zig@v2\n  with:\n    version: 0.7.0\n```\n\nThe default is to use the nightly `master` builds.\n\nOr [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:\n```yaml\n- uses: goto-bus-stop/setup-zig@v2\n  with:\n    version: 0.6.0+4b48fccad\n```\n\nIf you are running Zig on Windows machines, you need to make sure that your .zig files use \\n line endings and not \\r\\n. The `actions/checkout` action auto-converts line endings to `\\r\\n` on Windows runners, so add a `.gitattributes` file:\n```\n*.zig text eol=lf\n```\n\nThis action caches the downloaded compilers in your repository's Actions cache by default,\nto reduce the load on the Zig Foundation's servers. Cached compilers are only about 60MB\neach per version/OS/architecture.\n\nIf this is really bad for you for some reason you can disable the caching.\n\n```yaml\n- uses: goto-bus-stop/setup-zig@v2\n  with:\n    cache: false\n```\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fsetup-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoto-bus-stop%2Fsetup-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fsetup-zig/lists"}