From e6690ede3102c4d19bcdad2004f89408a00373f2 Mon Sep 17 00:00:00 2001 From: moruiris <53965900+moruiris@users.noreply.github.com> Date: Fri, 30 Dec 2022 22:29:19 +0800 Subject: [PATCH] Update immortalwrt_R3P.yml --- .github/workflows/immortalwrt_R3P.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/immortalwrt_R3P.yml b/.github/workflows/immortalwrt_R3P.yml index ac9a0e1..ad2faa2 100644 --- a/.github/workflows/immortalwrt_R3P.yml +++ b/.github/workflows/immortalwrt_R3P.yml @@ -37,11 +37,13 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | + ( sudo -E apt-get -qq update + sudo -E apt-get -qq install build-essential clang flex g++ gawk gcc-multilib gettext \ + git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev swig libpython3-dev aria2 jq subversion qemu-utils ccache rename libelf-dev + sudo -E apt-get -qq purge azure-cli ghc* zulu* hhvm llvm* firefox powershell openjdk* dotnet* google* mysql* php* android* sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc - sudo -E apt-get -qq update - sudo -E apt-get -qq install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler ccache xsltproc rename antlr3 gperf wget curl swig rsync sudo -E apt-get -qq autoremove --purge - sudo -E apt-get -qq clean + sudo -E apt-get -qq clean ) & sudo timedatectl set-timezone "$TZ" - name: 下载固件源码 @@ -90,7 +92,7 @@ jobs: cd openwrt echo -e "$(nproc) thread compile" make -j$(nproc) || make -j1 || make -j1 V=s - echo "::set-output name=status::success" + echo "status=success" >> $GITHUB_OUTPUT - name: 设置当前的日期 id: date @@ -120,7 +122,7 @@ jobs: sudo -E apt-get -qq install rename rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *.bin echo "FIRMWARE=$PWD" >> $GITHUB_ENV - echo "::set-output name=status::success" + echo "status=success" >> $GITHUB_OUTPUT - name: 上传固件到github uses: actions/upload-artifact@main @@ -137,7 +139,7 @@ jobs: touch release.txt echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt echo "📥 固件下载" >> release.txt - echo "::set-output name=status::success" + echo "status=success" >> $GITHUB_OUTPUT - name: 发布至release uses: softprops/action-gh-release@v1