File tree 5 files changed +48
-6
lines changed
5 files changed +48
-6
lines changed Original file line number Diff line number Diff line change 61
61
runs-on : ubuntu-20.04
62
62
container : ruby:2.2
63
63
steps :
64
- - name : Install system dependencies
65
- run : apt-get update && apt-get install -y python3
66
64
- name : Checkout
67
65
uses : actions/checkout@v2
68
66
- name : Bundle
Original file line number Diff line number Diff line change 5
5
6
6
version=" ${1} "
7
7
8
- NJOBS=" ${NJOBS:- $(getconf _NPROCESSORS_ONLN 2>/ dev/ null || true)} "
8
+ NJOBS=" ${NJOBS:- $(getconf _NPROCESSORS_ONLN 2>/ dev/ null || getconf NPROCESSORS_ONLN 2> / dev / null || true)} "
9
9
NJOBS=" ${NJOBS:- 1} "
10
10
11
11
echo " parallel job count: ${NJOBS} "
12
12
13
13
cd " src/node-${version} "
14
14
15
- python2 configure --openssl-no-asm --without-npm --shared --with-intl=small-icu
15
+ patch -p1 < ../../py2-icutrim.patch
16
+
17
+ if which python3 > /dev/null 2>&1 ; then
18
+ PYTHON=" ${PYTHON:- python3} "
19
+ else
20
+ PYTHON=" ${PYTHON:- python2} "
21
+ fi
22
+
23
+ " ${PYTHON} " configure --openssl-no-asm --without-npm --shared --with-intl=small-icu
16
24
make -j" ${NJOBS} "
17
25
18
26
# taken from
Original file line number Diff line number Diff line change 5
5
6
6
version=" ${1} "
7
7
8
+ platform=$( uname)
9
+
10
+ case " ${platform} " in
11
+ SunOS)
12
+ CURLOPTS=" ${CURLOPTS:- -k} "
13
+ ;;
14
+ * )
15
+ CURLOPTS=" ${CURLOPTS:- } "
16
+ ;;
17
+ esac
18
+
8
19
mkdir -p src
9
20
10
- curl -L -o " src/node-${version} .tar.gz" " https://github.com/nodejs/node/archive/v${version} .tar.gz"
21
+ curl ${CURLOPTS} -L -o " src/node-${version} .tar.gz" " https://github.com/nodejs/node/archive/v${version} .tar.gz"
Original file line number Diff line number Diff line change 5
5
6
6
version=" ${1} "
7
7
8
- tar -C src -xz -f " src/node-${version} .tar.gz"
8
+ platform=$( uname)
9
+
10
+ case " ${platform} " in
11
+ SunOS)
12
+ TAR=" ${TAR:- gtar} "
13
+ ;;
14
+ * )
15
+ TAR=" ${TAR:- tar} "
16
+ ;;
17
+ esac
18
+
19
+ " ${TAR} " -C src -xz -f " src/node-${version} .tar.gz"
Original file line number Diff line number Diff line change
1
+ --- a/tools/icu/icutrim.py 2020-11-03 16:54:23.000000000 +0100
2
+ +++ b/tools/icu/icutrim.py 2020-11-03 16:54:27.000000000 +0100
3
+ @@ -316,7 +316,10 @@
4
+ erritems = fi.readlines()
5
+ fi.close()
6
+ #Item zone/zh_Hant_TW.res depends on missing item zone/zh_Hant.res
7
+ - pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
8
+ + if str == bytes:
9
+ + pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*"))
10
+ + else:
11
+ + pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
12
+ for i in range(len(erritems)):
13
+ line = erritems[i].strip()
14
+ m = pat.match(line)
You can’t perform that action at this time.
0 commit comments