Skip to content

Commit

Permalink
feat: use dedicated schroot to speedup npm builds
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer authored and BaochengSu committed Sep 4, 2023
1 parent f9d64bc commit ac6eb00
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/npm.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ NPM_INSTALL_FLAGS ?= ""
NPM_REBUILD ?= "1"

ISAR_CROSS_COMPILE = "0"
SBUILD_FLAVOR = "npm"

SRC_URI = "npm://registry.npmjs.org;name=${NPMPN};version=${PV} \
${NPM_SHRINKWRAP}"
Expand Down
16 changes: 16 additions & 0 deletions recipes-devtools/sbuild-chroot/sbuild-chroot-target-npm.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright (c) Siemens AG, 2023
#
# Authors:
# Felix Moessbauer <[email protected]>
#
# This file is subject to the terms and conditions of the MIT License. See
# COPYING.MIT file in the top-level directory.
#

DESCRIPTION = "Isar sbuild/schroot filesystem for npm"

require recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb

SBUILD_FLAVOR = "npm"
SBUILD_CHROOT_PREINSTALL_EXTRA += "npm python3 libnode108"

0 comments on commit ac6eb00

Please sign in to comment.