feat: Add support for different processor architectures (#518)

ARM, ARM64
This commit is contained in:
Steve Teuber 2021-05-27 06:03:38 +02:00 committed by GitHub
parent 65bdbf15ab
commit 6d30a88741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 859 additions and 718 deletions

View file

@ -2,6 +2,7 @@ import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as io from '@actions/io';
import getOS from './get-os';
import getArch from './get-arch';
import getURL from './get-url';
import * as path from 'path';
import {Tool, Action} from './constants';
@ -49,7 +50,10 @@ export async function installer(version: string): Promise<void> {
const osName: string = getOS(process.platform);
core.debug(`Operating System: ${osName}`);
const toolURL: string = getURL(osName, extended, version);
const archName: string = getArch(process.arch);
core.debug(`Processor Architecture: ${archName}`);
const toolURL: string = getURL(osName, archName, extended, version);
core.debug(`toolURL: ${toolURL}`);
const workDir = await createWorkDir();