Skip to content

Support x86_64 and non-Windows platforms with updating Node.js to 24#15

Open
sugahara-Faber wants to merge 6 commits intotofuutils:mainfrom
sugahara-Faber:main
Open

Support x86_64 and non-Windows platforms with updating Node.js to 24#15
sugahara-Faber wants to merge 6 commits intotofuutils:mainfrom
sugahara-Faber:main

Conversation

@sugahara-Faber
Copy link

This pull request updates the action to support newer Node.js versions and refines platform/architecture handling for improved compatibility. The main changes include switching to Node.js 24, updating dependencies, correcting architecture mappings, and improving platform-specific build selection and extraction logic.

Platform and architecture compatibility improvements:

  • Updated the architecture mapping in mapArch to use x86_64 instead of amd64 for x64, ensuring consistency with release asset naming conventions.
  • Modified the build selection in getBuild to use the correct archive extension (zip for Windows, tar.gz for others), and improved logging by replacing console.log with core.info and core.debug.

Action runtime and dependency updates:

  • Changed the action runtime from Node.js 20 to Node.js 24 in action.yml for better performance and compatibility.
  • Updated dependencies in package.json, including @actions/core, @actions/io, and husky to their latest versions.

Release asset extraction logic:

  • Switched non-Windows release asset extraction from tc.extractZip to tc.extractTar to correctly handle .tar.gz files.

Logging improvements:

  • Replaced console.log statements with core.debug for build arrays and core.info for required asset names in lib/releases.js. [1] [2]

Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Signed-off-by: Masayuki Sugahara <masayuki.sugahara@fabercompany.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant