Skip to content

Commit 7ac85bf

Browse files
authored
Update 通用设备编译.yml
1 parent 02389b1 commit 7ac85bf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/通用设备编译.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,11 @@ jobs:
101101
- name: Compile the firmware
102102
id: compile
103103
run: |
104-
cd openwrt
104+
cd openwrt/
105105
echo -e "$(nproc) thread compile"
106-
make -j$(nproc) || make -j1 || make -j1 V=s
107-
echo "::set-output name=status::success"
108-
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
109-
[ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV
110-
echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
106+
make -j$(($(nproc) + 1)) V=s || make -j1 || make -j1 V=s
107+
echo "build_tag=OpenWrt_$(date +"%m.%d.%H%M")" >> ${GITHUB_OUTPUT}
108+
echo "status=success" >> ${GITHUB_OUTPUT}
111109
112110
- name: Check space usage
113111
if: (!cancelled())

0 commit comments

Comments
 (0)