Skip to content

Commit c193e40

Browse files
committed
add crossbuild
1 parent cd47fcc commit c193e40

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ jobs:
3737
with:
3838
path: ./node_modules
3939
key: modules-${{ hashFiles('package-lock.json') }}
40-
- name: Install Node Dependencies
41-
if: steps.cache.outputs.cache-hit != 'true'
42-
run: npm ci --ignore-scripts
4340
- name: Build for arm
4441
run: docker run --platform linux/arm -it --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
4542
- name: upload linux artifact
@@ -67,9 +64,6 @@ jobs:
6764
with:
6865
path: ./node_modules
6966
key: modules-${{ hashFiles('package-lock.json') }}
70-
- name: Install Node Dependencies
71-
if: steps.cache.outputs.cache-hit != 'true'
72-
run: npm ci --ignore-scripts
7367
- name: Build for arm
7468
run: docker run --platform linux/arm64 -it --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
7569
- name: upload linux artifact

tools/crossbuild.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# this is used inside a docker (running with qemu binfmt) to easily crossbuild project
44
# run with docker run --platform linux/arm64 -it --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild.sh
55

6-
apt update
7-
apt install -y xorg-dev libglu1-mesa-dev
8-
npm i
6+
apt-get update
7+
apt-get install -y xorg-dev libglu1-mesa-dev cmake
8+
npm ci
99
npm run compile

0 commit comments

Comments
 (0)