Skip to content

Commit

Permalink
Add Arm64 Build
Browse files Browse the repository at this point in the history
  • Loading branch information
N95JPL committed Jan 23, 2024
1 parent 84f93de commit fae5bc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [armv7l, x64]
platform: [armv7l, arm64, x64]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -33,19 +33,22 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "20.10.0"
node-version: "20.11.0"

- name: Install dependencies
run: npm install

- name: Setup Pre-Built socketcan and node-expat Binaries
- name: Configure Pre-Built Native Modules
run: |
echo "Configuring pre-built SocketCan modules..."
mkdir -p node_modules/socketcan/build/Release
mkdir -p node_modules/node-expat/build/Release
if [ "${{ matrix.platform }}" = "armv7l" ]; then
cp prebuilt/socketcan/can-armv7l.node node_modules/socketcan/build/Release/can.node
cp prebuilt/socketcan/can_signals-armv7l.node node_modules/socketcan/build/Release/can_signals.node
elif [ "${{ matrix.platform }}" = "arm64" ]; then
cp prebuilt/socketcan/can-arm64.node node_modules/socketcan/build/Release/can.node
cp prebuilt/socketcan/can_signals-arm64.node node_modules/socketcan/build/Release/can_signals.node
elif [ "${{ matrix.platform }}" = "x64" ]; then
cp prebuilt/socketcan/can-x64.node node_modules/socketcan/build/Release/can.node
cp prebuilt/socketcan/can_signals-x64.node node_modules/socketcan/build/Release/can_signals.node
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A Electron-Vite-React App to one day replace the Infotainment Module of my Freel
### Install

1. Make sure RPi is running latest version
2. Install NodeJs: This has only been tested on the latest 19.2.0
2. Install NodeJs: This has only been tested on the latest 20.10.0
3. Install CanUtils: sudo apt-get -y install can-utils libsocketcan2 libsocketcan-dev
4. Modify /boot/config.txt to include

Expand Down
Binary file added prebuilt/socketcan/can-arm64.node
Binary file not shown.
Binary file added prebuilt/socketcan/can_signals-arm64.node
Binary file not shown.

0 comments on commit fae5bc9

Please sign in to comment.