Skip to content

Commit

Permalink
Update R4S-OpenWrt.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JSZMonkey authored Nov 6, 2023
1 parent 282780f commit b085ec4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/R4S-OpenWrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
echo -e "Total CPU cores\t: $(nproc)"
cat /proc/cpuinfo | grep 'model name'
cpu_name=$(cat /proc/cpuinfo | grep "model name" | head -n 1 | awk -F: '{print $2}' | sed 's/^[ \t]*//')
if [[ ! "$cpu_name" =~ "8370C" ]]; then
echo "CPU不为8370C,性能不足,停止执行命令"
exit 1
if [[ "$cpu_name" =~ "8370C" || "$cpu_name" =~ "7763" ]]; then
echo "CPU为8370C或7763,继续执行命令"
ulimit -a
else
echo "CPU为8370C,继续执行命令"
ulimit -a
echo "CPU不为8370C或7763,性能不足,停止执行命令"
exit 1
fi
- name: Maximize build space
uses: easimon/maximize-build-space@master
Expand Down

0 comments on commit b085ec4

Please sign in to comment.