Skip to content

Commit 8ef7bf7

Browse files
fix: 更新触发
1 parent e6f8add commit 8ef7bf7

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

.github/workflows/custom.yml

+5-21
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ on:
77
description: 'Node.js version'
88
required: true
99
default: 'v22.9.0'
10-
use_cache:
11-
description: 'Use cache'
12-
type: boolean
13-
required: true
14-
default: false
1510
latest_version:
1611
description: 'Latest'
1712
type: boolean
@@ -23,7 +18,6 @@ jobs:
2318
runs-on: ubuntu-latest
2419
env:
2520
version: ${{ github.event.inputs.version }}
26-
use_cache: ${{ github.event.inputs.use_cache }}
2721
latest_version: ${{ github.event.inputs.latest_version }}
2822
strategy:
2923
matrix:
@@ -42,6 +36,10 @@ jobs:
4236
run: |
4337
case ${{ matrix.binaries }} in
4438
glibc)
39+
if [ "${{ env.major_version }}" -gt "20" ]; then
40+
# https://github.com/nodejs/node/pull/52888
41+
exit 0
42+
fi
4543
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
4644
;;
4745
musl)
@@ -74,11 +72,6 @@ jobs:
7472
- uses: docker/setup-buildx-action@v3
7573
if: env.create == '1'
7674

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-
8275
- name: Cache node.js
8376
if: env.create == '1'
8477
uses: actions/cache@v4
@@ -89,20 +82,11 @@ jobs:
8982
${{ matrix.name }}-${{ matrix.binaries }}-v${{ env.major_version }}-
9083
9184
- name: Set Cache
92-
if: env.use_cache == 'true'
85+
if: env.create == '1'
9386
run: |
9487
mkdir -p ${{ github.workspace }}/workdir/staging
9588
sudo chmod -R 777 ${{ github.workspace }}/workdir/staging
9689
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
10690
10791
- name: Build node.js
10892
if: env.create == '1'

.github/workflows/daily.yml

-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ jobs:
6969
- uses: docker/setup-buildx-action@v3
7070
if: env.create == '1'
7171

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-
7772
- name: Cache node.js
7873
if: env.create == '1'
7974
uses: actions/cache@v4

0 commit comments

Comments
 (0)