Commit 8ef7bf7 1 parent e6f8add commit 8ef7bf7 Copy full SHA for 8ef7bf7
File tree 2 files changed +5
-26
lines changed
2 files changed +5
-26
lines changed Original file line number Diff line number Diff line change 7
7
description : ' Node.js version'
8
8
required : true
9
9
default : ' v22.9.0'
10
- use_cache :
11
- description : ' Use cache'
12
- type : boolean
13
- required : true
14
- default : false
15
10
latest_version :
16
11
description : ' Latest'
17
12
type : boolean
23
18
runs-on : ubuntu-latest
24
19
env :
25
20
version : ${{ github.event.inputs.version }}
26
- use_cache : ${{ github.event.inputs.use_cache }}
27
21
latest_version : ${{ github.event.inputs.latest_version }}
28
22
strategy :
29
23
matrix :
42
36
run : |
43
37
case ${{ matrix.binaries }} in
44
38
glibc)
39
+ if [ "${{ env.major_version }}" -gt "20" ]; then
40
+ # https://github.com/nodejs/node/pull/52888
41
+ exit 0
42
+ fi
45
43
gh release view ${{ env.version }} -R ${{ github.repository }} | grep node-${{ env.version }}-linux-loong64.tar.xz >/dev/null 2>&1 || echo "create=1" >> $GITHUB_ENV
46
44
;;
47
45
musl)
74
72
- uses : docker/setup-buildx-action@v3
75
73
if : env.create == '1'
76
74
77
- - name : Setup QEMU
78
- if : env.create == '1'
79
- run : |
80
- docker run --rm --privileged ghcr.io/loong64/qemu-user-static --reset -p yes
81
-
82
75
- name : Cache node.js
83
76
if : env.create == '1'
84
77
uses : actions/cache@v4
@@ -89,20 +82,11 @@ jobs:
89
82
${{ matrix.name }}-${{ matrix.binaries }}-v${{ env.major_version }}-
90
83
91
84
- name : Set Cache
92
- if : env.use_cache == 'true '
85
+ if : env.create == '1 '
93
86
run : |
94
87
mkdir -p ${{ github.workspace }}/workdir/staging
95
88
sudo chmod -R 777 ${{ github.workspace }}/workdir/staging
96
89
sudo chown -R 1000:docker ${{ github.workspace }}/workdir/staging
97
- case ${{ matrix.binaries }} in
98
- glibc)
99
- echo "Pass ..."
100
- ;;
101
- musl)
102
- wget https://www.wuxiaobai.win/download/node-cache-${{ env.version }}-linux-loong64-musl.tar.gz
103
- tar -pxf node-cache-${{ env.version }}-linux-loong64-musl.tar.gz -C ${{ github.workspace }}/workdir
104
- ;;
105
- esac
106
90
107
91
- name : Build node.js
108
92
if : env.create == '1'
Original file line number Diff line number Diff line change 69
69
- uses : docker/setup-buildx-action@v3
70
70
if : env.create == '1'
71
71
72
- - name : Setup QEMU
73
- if : env.create == '1'
74
- run : |
75
- docker run --rm --privileged ghcr.io/loong64/qemu-user-static --reset -p yes
76
-
77
72
- name : Cache node.js
78
73
if : env.create == '1'
79
74
uses : actions/cache@v4
You can’t perform that action at this time.
0 commit comments