Skip to content
play

GitHub Action

setup xmake

v1 Latest version

setup xmake

play

setup xmake

Set up a xmake environment and add it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup xmake

uses: xmake-io/github-action-setup-xmake@v1

Learn more about this action in xmake-io/github-action-setup-xmake

Choose a version

GitHub Action - Setup xmake

Build status GitHub release (latest by date)

Set up your GitHub Actions workflow with a specific version of xmake

Usage

See action.yml.

Example

Use latest version:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: latest

Use specified version:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: '2.5.3'

Use specified branch:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: branch@master

Use semver:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: '>=2.2.6 <=2.5.3'

Use action cache:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: '2.7.2'
  actions-cache-folder: '.xmake-cache'

Use action cache with cachekey:

uses: xmake-io/github-action-setup-xmake@v1
with:
  xmake-version: '2.7.2'
  actions-cache-folder: '.xmake-cache'
  actions-cache-key: 'archlinux-ci'

Contributing

Prepare development environment

pnpm install

Draft a new release

pnpm release
git add .
git commit -m "build: release"
pnpm version [new-version]

# for a minor version or patch of v1
git tag --delete v1
git tag v1

git push origin master
git push --tags --force