Skip to content

Commit fb17a39

Browse files
authored
Refactor workflow steps for custom configuration loading
1 parent fe45e77 commit fb17a39

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ArmV8-Virtual_v24.10-SNAPSHOT.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,29 +93,29 @@ jobs:
9393
- name: Install feeds 安装feeds
9494
run: cd openwrt && ./scripts/feeds install -a -f
9595

96-
- name: Load custom configuration 加载自定义配置config及files
97-
run: |
98-
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
99-
chmod +x $DIY_P2_SH
100-
cd openwrt
101-
$GITHUB_WORKSPACE/$DIY_P2_SH
102-
10396
- name: SSH connection to Actions SSH连接
10497
uses: P3TERX/ssh2actions@v1.0.0
10598
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
10699
env:
107100
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
108101
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
109102

110-
- name: Download package 下载dl包
103+
- name: Download package 应用deconfig,下载dl包
111104
id: package
112105
run: |
106+
[ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
113107
cd openwrt
114108
make defconfig
115109
make download -j$(nproc) || make download -j1 V=s
116110
find dl -size -1024c -exec ls -l {} \;
117111
find dl -size -1024c -exec rm -f {} \;
118112
113+
- name: Load custom configuration 加载自定义配置files及P2_SH
114+
run: |
115+
chmod +x $DIY_P2_SH
116+
cd openwrt
117+
$GITHUB_WORKSPACE/$DIY_P2_SH
118+
119119
- name: Compile the firmware 编译固件
120120
id: compile
121121
run: |

0 commit comments

Comments
 (0)