Node 24 upgrade

Doing an upgrade for node 24, node 24 is stricter with types so need to add a type for achitecture
This commit is contained in:
Salman Muin Kayser Chishti
2025-07-31 11:28:58 +01:00
parent 8e57b58e57
commit abe7d6b8af
6 changed files with 20 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ import {isCacheFeatureAvailable} from './cache-utils';
import cp from 'child_process';
import fs from 'fs';
import os from 'os';
import {Architecture} from './types';
export async function run() {
try {
@@ -20,10 +21,10 @@ export async function run() {
const cache = core.getBooleanInput('cache');
core.info(`Setup go version spec ${versionSpec}`);
let arch = core.getInput('architecture');
let arch = core.getInput('architecture') as Architecture;
if (!arch) {
arch = os.arch();
arch = os.arch() as Architecture;
}
if (versionSpec) {