Skip to content

Commit bbef886

Browse files
committed
Add ARM64
1 parent 5408e02 commit bbef886

File tree

3 files changed

+46
-5
lines changed

3 files changed

+46
-5
lines changed

.github/workflows/scheduled-builds.yml renamed to .github/workflows/amd64-linux-scheduled-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update:
10-
name: Check for newer versions of Rust and update
10+
name: Check for newer versions of Nodejs and update
1111
runs-on: ubuntu-latest
1212
container:
1313
image: ubuntu:devel
@@ -34,5 +34,5 @@ jobs:
3434
SCCACHE_GHA_ENABLED: "true"
3535
run: cd libnode-distributable && node index.js
3636

37-
- name: A buncha ls
38-
run: find libnode-distributable/node -name libnode.so\* -exec ls -la {} \;
37+
- name: Find the shared library
38+
run: find libnode-distributable/node -name libnode.so\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \;
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check for newer versions and publish
2+
3+
on:
4+
schedule:
5+
- cron: "0 8 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
update:
10+
name: Check for newer versions of Nodejs and update
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: pguyot/arm-runner-action@v2
14+
15+
- name: Update system
16+
run: apt-get update && apt-get --yes upgrade
17+
18+
- name: Install Nodejs 21 repo
19+
run: apt-get install --yes ca-certificates curl gnupg && curl -sL https://deb.nodesource.com/setup_21.x | bash - && apt-get update
20+
21+
- name: Install building tools
22+
run: apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs ccache
23+
24+
- name: Clone the repo
25+
run: git clone https://github.com/devraymondsh/libnode-distributable
26+
27+
- name: Run sccache-cache
28+
uses: mozilla-actions/[email protected]
29+
30+
- name: Run the script
31+
env:
32+
CC: "sccache gcc"
33+
CXX: "sccache g++"
34+
SCCACHE_GHA_ENABLED: "true"
35+
run: cd libnode-distributable && node index.js
36+
37+
- name: Find the shared library
38+
run: find libnode-distributable/node -name libnode.so\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \;

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ const spawnAsync = (program, args, cwd) =>
4747
const child = spawn(program, args, cwd ? { cwd } : {});
4848

4949
child.stdout.on("data", (chunk) => console.log(chunk.toString()));
50-
child.stderr.on("data", (chunk) => console.warn(chunk.toString()));
51-
child.on("close", (code) => resolve(code.toString()));
50+
child.stderr.on("data", (chunk) => console.error(chunk.toString()));
51+
child.on("close", (code) => {
52+
if (code == 0) resolve(code.toString());
53+
else reject(code.toString());
54+
});
5255
});
5356

5457
const latestNodeVersion = await getLatestNodeVersion();

0 commit comments

Comments
 (0)