Skip to content

build: update Node.js to 20.12.0 for ARM64 support#321

Merged
justparking merged 64 commits into
museumsvictoria:devfrom
scroix:build/node-arm64-support
May 4, 2024
Merged

build: update Node.js to 20.12.0 for ARM64 support#321
justparking merged 64 commits into
museumsvictoria:devfrom
scroix:build/node-arm64-support

Conversation

@scroix
Copy link
Copy Markdown
Member

@scroix scroix commented May 3, 2024

This PR updates the Node.js version to 20.12.0 in order to get access to ARM64 binaries for building on Apple Silicon machines.

ARM64 binaries were first introduced in Node.js 16+ but 20 and 18 are LTS.

Additionally, the --legacy-peer-deps flag has been added to the npmInstall task, a new flag, which is necessary for ensuring compatibility with older dependencies that are otherwise forced to be updated.

scroix and others added 30 commits March 18, 2024 21:13
- Migrate build scripts to be compatible
- Bump Node.js version to one which supports ARM/Silicon builds
- Configure the node-gradle-plugin
- Using `gradle wrapper` command
- 'default' includes googlefonts build, but the 'build' command does not
- This tackles a tiny regression which saw us lose -dev- handled in the generated .jar filename
- We also handle the odd case of building in a git branch which includes a forward slash
- Configure Gradle build to include JUnit dependencies
- Cover SimpleNameTest with a couple of test cases
- Ensure they pass
scroix added 20 commits April 6, 2024 16:08
- Configure Gradle build to include JUnit dependencies
- Cover SimpleNameTest with a couple of test cases
- Ensure they pass
… Actions and Events

- These are in preparation for changes related to issue museumsvictoria#284
- Configure Gradle build to include JUnit dependencies
- Cover SimpleNameTest with a couple of test cases
- Ensure they pass
…odel into feature/introduce-junit-testing

# Conflicts:
#	nodel-framework/build.gradle
#	nodel-framework/src/test/java/org/nodel/SimpleNameTest.java
…scroix/nodel into feature/introduce-junit-testing"

This reverts commit 50dfbcb, reversing
changes made to b1a73ad.
@scroix scroix self-assigned this May 3, 2024
@scroix scroix added the build Anything related to the building of the software label May 3, 2024
@scroix scroix marked this pull request as ready for review May 3, 2024 02:28
Copy link
Copy Markdown
Collaborator

@justparking justparking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. I haven't tried this on Windows yet. I wouldn't mind comparing the build times and size of builds (if any) between the different versions of node.js

@justparking justparking merged commit e0e6500 into museumsvictoria:dev May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Anything related to the building of the software

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants