Version ghcup (#3)

* Version ghcup

* Don't cache something that needs to be tested for correctness
This commit is contained in:
Jared Weakly
2020-04-27 17:22:46 -07:00
committed by GitHub
parent 68697853e3
commit 9bd8f8d45b
4 changed files with 26 additions and 16 deletions

View File

@@ -178,10 +178,11 @@ async function choco(tool: Tool, version: string): Promise<void> {
async function ghcup(tool: Tool, version: string, os: OS): Promise<void> {
core.info(`Attempting to install ${tool} ${version} using ghcup`);
const v = '0.1.4';
const bin = await tc.downloadTool(
`https://downloads.haskell.org/~ghcup/x86_64-${
`https://downloads.haskell.org/~ghcup/${v}/x86_64-${
os === 'darwin' ? 'apple-darwin' : 'linux'
}-ghcup`
}-ghcup-${v}`
);
await fs.chmod(bin, 0o755);