import { exec } from '@actions/exec'; import * as os from 'os'; import { selectVersion } from './versions'; import { winInstall } from './win-install'; import { unixInstall } from './unix-install'; export async function installXmake(): Promise { const version = await selectVersion(); if (os.platform() === 'win32' || os.platform() === 'cygwin') { const latest = await selectVersion('latest'); await winInstall(version, latest); } else { await unixInstall(version); } await exec('xmake --root --version'); }