Skip to content

Commit

Permalink
Add known server cpu model
Browse files Browse the repository at this point in the history
  • Loading branch information
haiibo committed Nov 8, 2023
1 parent dd88080 commit ea7ce09
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ARMv8-Docker-BuildX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
echo "警告⚠"
echo "分配的服务器性能有限,若选择的插件过多,务必注意CPU性能!"
echo -e "已知CPU型号(降序):8370C,8272CL,8171M,E5-2673 \n"
echo -e "已知CPU型号(降序):7763,8370C,8272CL,8171M,E5-2673 \n"
echo "--------------------------CPU信息--------------------------"
echo "CPU物理数量:$(cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l)"
echo -e "CPU核心信息:$(cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c) \n"
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/ARMv8-Docker-OpenWrt.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#===============================================
# Description: Build OpenWrt
# File name: build-openwrt.yml
# Lisence: MIT
# Author: P3TERX
# https://github.com/P3TERX
#===============================================

name: ARMv8 Docker OpenWrt

on:
Expand Down Expand Up @@ -34,7 +26,7 @@ jobs:
run: |
echo "警告⚠"
echo "分配的服务器性能有限,若选择的插件过多,务必注意CPU性能!"
echo -e "已知CPU型号(降序):8370C,8272CL,8171M,E5-2673 \n"
echo -e "已知CPU型号(降序):7763,8370C,8272CL,8171M,E5-2673 \n"
echo "--------------------------CPU信息--------------------------"
echo "CPU物理数量:$(cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l)"
echo -e "CPU核心信息:$(cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c) \n"
Expand Down Expand Up @@ -114,7 +106,7 @@ jobs:
echo "DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
- name: Check Space Usage
if: always()
if: (!cancelled())
run: df -hT

- name: Organize Files
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/ARMv8-Mini-OpenWrt.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#===============================================
# Description: Build OpenWrt
# File name: build-openwrt.yml
# Lisence: MIT
# Author: P3TERX
# https://github.com/P3TERX
#===============================================

name: ARMv8 Mini OpenWrt

on:
Expand Down Expand Up @@ -41,7 +33,7 @@ jobs:
run: |
echo "警告⚠"
echo "分配的服务器性能有限,若选择的插件过多,务必注意CPU性能!"
echo -e "已知CPU型号(降序):8370C,8272CL,8171M,E5-2673 \n"
echo -e "已知CPU型号(降序):7763,8370C,8272CL,8171M,E5-2673 \n"
echo "--------------------------CPU信息--------------------------"
echo "CPU物理数量:$(cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l)"
echo -e "CPU核心信息:$(cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c) \n"
Expand Down Expand Up @@ -134,7 +126,7 @@ jobs:
echo "FILE_DATE=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
- name: Check Space Usage
if: always()
if: (!cancelled())
run: df -hT

- name: Upload Bin Directory
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/ARMv8-Package.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#===============================================
# Description: ARMv8 Package
# File name: armv8-package.yml
# Lisence: MIT
# Author: HAIIBO
# https://github.com/haiibo
#===============================================

name: ARMv8 Package

on:
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/ARMv8-Plus-OpenWrt.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#===============================================
# Description: Build OpenWrt
# File name: build-openwrt.yml
# Lisence: MIT
# Author: P3TERX
# https://github.com/P3TERX
#===============================================

name: ARMv8 Plus OpenWrt

on:
Expand Down Expand Up @@ -181,7 +173,7 @@ jobs:
run: |
echo "警告⚠"
echo "分配的服务器性能有限,若选择的插件过多,务必注意CPU性能!"
echo -e "已知CPU型号(降序):8370C,8272CL,8171M,E5-2673 \n"
echo -e "已知CPU型号(降序):7763,8370C,8272CL,8171M,E5-2673 \n"
echo "--------------------------CPU信息--------------------------"
echo "CPU物理数量:$(cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l)"
echo -e "CPU核心信息:$(cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c) \n"
Expand All @@ -197,7 +189,7 @@ jobs:
run: |
docker rmi $(docker images -q)
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /etc/mysql /etc/php /usr/local/lib/android
sudo -E apt-get -y purge azure-cli* docker* ghc* zulu* llvm* firefox* google* dotnet* powershell* openjdk* mysql* php* mongodb* moby* snap* aspnetcore*
sudo -E apt-get -y purge azure-cli* docker* ghc* zulu* llvm* firefox* google* dotnet* powershell* openjdk* mysql* php* mongodb* snap* aspnetcore*
sudo -E apt-get -qq update
sudo -E apt-get -y install libfuse-dev $(curl -fsSL is.gd/depends_ubuntu_2204)
sudo -E apt-get -qq autoremove --purge
Expand Down Expand Up @@ -300,7 +292,7 @@ jobs:
echo "FILE_DATE=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
- name: Check Space Usage
if: always()
if: (!cancelled())
run: |
lsblk -f
echo -e "\n"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Delete-Old-Workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Delete Old Workflows
uses: GitRML/delete-workflow-runs@main
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
retain_days: 7
Expand Down

0 comments on commit ea7ce09

Please sign in to comment.