mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-12-25 03:55:50 +00:00
Add extra info
This commit is contained in:
parent
43d44139c7
commit
93313caf82
1 changed files with 3 additions and 0 deletions
|
@ -234,6 +234,9 @@ async function acquireNodeFromFallbackLocation(
|
||||||
|
|
||||||
// os.arch does not always match the relative download url, e.g.
|
// os.arch does not always match the relative download url, e.g.
|
||||||
// os.arch == 'arm' != node-v12.13.1-linux-armv7l.tar.gz
|
// os.arch == 'arm' != node-v12.13.1-linux-armv7l.tar.gz
|
||||||
|
// All other currently supported architectures match, e.g.:
|
||||||
|
// os.arch = arm64 => https://nodejs.org/dist/v{VERSION}/node-v{VERSION}-{OS}-arm64.tar.gz
|
||||||
|
// os.arch = x64 => https://nodejs.org/dist/v{VERSION}/node-v{VERSION}-{OS}-x64.tar.gz
|
||||||
function translateArchToDistUrl(arch: string): string {
|
function translateArchToDistUrl(arch: string): string {
|
||||||
switch (arch) {
|
switch (arch) {
|
||||||
case 'arm':
|
case 'arm':
|
||||||
|
|
Loading…
Reference in a new issue