{"id":13532539,"url":"https://github.com/xmake-io/github-action-setup-xmake","last_synced_at":"2025-04-10T02:21:48.726Z","repository":{"id":42904523,"uuid":"211770706","full_name":"xmake-io/github-action-setup-xmake","owner":"xmake-io","description":"Set up your GitHub Actions workflow with a specific version of xmake","archived":false,"fork":false,"pushed_at":"2025-01-17T13:00:46.000Z","size":2762,"stargazers_count":32,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T00:04:23.400Z","etag":null,"topics":["ci","github-action","setup-xmake","xmake"],"latest_commit_sha":null,"homepage":"https://xmake.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmake-io.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":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"waruqi","open_collective":"xmake","custom":"https://xmake.io/#/sponsor"}},"created_at":"2019-09-30T03:50:43.000Z","updated_at":"2025-03-31T14:42:35.000Z","dependencies_parsed_at":"2024-01-14T01:05:53.452Z","dependency_job_id":"d2ee9ec1-f17f-4fc5-9435-645341ce6785","html_url":"https://github.com/xmake-io/github-action-setup-xmake","commit_stats":{"total_commits":113,"total_committers":7,"mean_commits":"16.142857142857142","dds":0.3893805309734514,"last_synced_commit":"9dab481a4536a004a409a05c5bbfffad4d4639f1"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fgithub-action-setup-xmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fgithub-action-setup-xmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fgithub-action-setup-xmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmake-io%2Fgithub-action-setup-xmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmake-io","download_url":"https://codeload.github.com/xmake-io/github-action-setup-xmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143144,"owners_count":21054713,"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":["ci","github-action","setup-xmake","xmake"],"created_at":"2024-08-01T07:01:11.711Z","updated_at":"2025-04-10T02:21:48.704Z","avatar_url":"https://github.com/xmake-io.png","language":"TypeScript","funding_links":["https://github.com/sponsors/waruqi","https://opencollective.com/xmake","https://xmake.io/#/sponsor"],"categories":["Others"],"sub_categories":[],"readme":"# GitHub Action - Setup xmake\n\n[![Build status](https://github.com/xmake-io/github-action-setup-xmake/workflows/test/badge.svg)](https://github.com/xmake-io/github-action-setup-xmake/actions)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/xmake-io/github-action-setup-xmake)](https://github.com/marketplace/actions/setup-xmake)\n\nSet up your GitHub Actions workflow with a specific version of xmake\n\n## Usage\n\nSee [action.yml](./action.yml).\n\n## Example\n\n### Use latest version\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: latest\n```\n\n### Use specified version\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.5.3'\n```\n\n### Use specified branch\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: branch@master\n```\n\n### Use semver\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '\u003e=2.2.6 \u003c=2.5.3'\n```\n\n### Cache xmake\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  actions-cache-folder: '.xmake-cache'\n```\n\n### Cache xmake with cachekey\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  actions-cache-folder: '.xmake-cache'\n  actions-cache-key: 'archlinux-ci'\n```\n\n### Cache packages\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  package-cache: true\n  package-cache-key: 'archlinux-ci'\n  project-path: 'myproject' # we need to compute packages hashkey for project\n```\n\n### Cache build\n\nBy default, xmake disables build cache when building on ci, so we need to enable it first.\n\n```bash\n$ xmake f --policies=build.ccache:y\n```\n\nAnd xmake v2.9.8 will enable it by default if action/build-cache is enabled.\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  build-cache: true\n  build-cache-key: 'archlinux-ci'\n```\n\nCache build with the specific project path.\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  build-cache: true\n  project-path: 'myproject' # we can get the build cache path from project.\n```\n\nCache build with the specific build path.\n\n```yml\nuses: xmake-io/github-action-setup-xmake@v1\nwith:\n  xmake-version: '2.9.7'\n  build-cache: true\n  build-cache-path: 'build/.build_cache'\n```\n\n## Contributing\n\n### Prepare development environment\n\n```bash\npnpm install\n```\n\n### Draft a new release\n\n```bash\npnpm release\ngit add .\ngit commit -m \"build: release\"\npnpm version [new-version]\n\n# for a minor version or patch of v1\ngit tag --delete v1\ngit tag v1\n\ngit push origin master\ngit push --tags --force\n```\n\n### Development and debug\n\n```bash\ngit branch test\ngit checkout test\npnpm build\npnpm release\ngit-commit -a -m \"...\"\ngit push origin test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-io%2Fgithub-action-setup-xmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmake-io%2Fgithub-action-setup-xmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmake-io%2Fgithub-action-setup-xmake/lists"}