From a597ed4e991746950d24505b8f78f4b6e8fb08f4 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sat, 15 May 2021 15:25:57 +0800 Subject: [PATCH] test --- .github/workflows/x86_64.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/x86_64.yml b/.github/workflows/x86_64.yml index 4f463a5..1f321ae 100644 --- a/.github/workflows/x86_64.yml +++ b/.github/workflows/x86_64.yml @@ -74,7 +74,7 @@ jobs: sudo -E apt-get -y autoremove --purge sudo -E apt-get clean - - name: Clone source code + - name: Clone Openwrt source code run: | git clone -b $REPO_BRANCH $REPO_URL openwrt ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt @@ -84,18 +84,23 @@ jobs: } cd openwrt ./scripts/feeds update -a - ./scripts/feeds install -a - make defconfig - - name: Run Custom Firmware-Diy Scripts + - name: Run Customize Diy-Scripts run: | chmod +x $DIY_SCRIPT chmod +x $FUNCTION_SCRIPT cd openwrt source $GITHUB_WORKSPACE/$DIY_SCRIPT - source $GITHUB_WORKSPACE/$FUNCTION_SCRIPT && Firmware-Diy_Base + source $GITHUB_WORKSPACE/$FUNCTION_SCRIPT + Firmware-Diy_Base Firmware-Diy + - name: Process Openwrt source code + run: | + cd openwrt + ./scripts/feeds install -a + make defconfig + - name: SSH connection to Actions uses: P3TERX/ssh2actions@v1.0.0 if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') @@ -103,14 +108,10 @@ jobs: TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} - - name: Preload and Compile the Openwrt + - name: Compile the Openwrt run: | - cp Configs/$CONFIG_FILE openwrt/.config - cd openwrt - ./scripts/feeds install -a - make defconfig make download -j$(nproc) - echo "Start to compile OpenWrt ..." + echo "Start to compile OpenWrt for $CONFIG_FILE..." make -j$(nproc) || make -j1 V=s - name: Process the AutoBuild Firmware