Skip to content

Commit

Permalink
Update build-openwrt-homelede.yml
Browse files Browse the repository at this point in the history
update the compiling process by according the latest README.md from homelede
  • Loading branch information
alexcdever authored May 13, 2022
1 parent 7dde6dc commit 8b9bc28
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build-openwrt-homelede.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ env:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: 检出代码
uses: actions/checkout@main

- name: 初始化编译环境
- name: 初始化编译环境,安装编译工具,设置时区
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt update
sudo apt install $(curl -fsSL raw.githubusercontent.com/alexcdever/homelede/main/compile-tools) -y
sudo apt autoremove --purge -y
sudo apt clean -y
sudo apt autoclean -y
sudo timedatectl set-timezone "$TZ"
sudo mkdir -p /workdir
sudo chown $USER:$GROUPS /workdir
- name: 克隆源码
- name: 克隆源码,跳转到homelede目录里
working-directory: /workdir
run: |
df -hT $PWD
Expand All @@ -67,15 +67,15 @@ jobs:
# TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
# TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}

- name: 执行准备步骤,下载相关的package
- name: 执行prepareCompile.sh脚本,下载相关的package
working-directory: /workdir
id: package
id: prepare
# 最新的README.md里已经去掉了 `make defconfig` 步骤
run: |
cd openwrt
chmod +x ./prepareCompile.sh
bash ./prepareCompile.sh
make defconfig
make download -j8 V=s
make download V=s
find dl -size -1024c -exec ls -l {} \;
find dl -size -1024c -exec rm -f {} \;
Expand All @@ -86,8 +86,6 @@ jobs:
echo -e "$(nproc) thread compile"
# make package/libs/toolchain/compile V=99
# make ./package/feeds/luci/luci-base/compile V=99
make dirclean
make -j1 V=s
echo "::set-output name=status::success"
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
Expand Down

0 comments on commit 8b9bc28

Please sign in to comment.