Update immortalwrt_R3P.yml
This commit is contained in:
parent
e90a40f642
commit
e6690ede31
14
.github/workflows/immortalwrt_R3P.yml
vendored
14
.github/workflows/immortalwrt_R3P.yml
vendored
@ -37,11 +37,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
run: |
|
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 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 autoremove --purge
|
||||||
sudo -E apt-get -qq clean
|
sudo -E apt-get -qq clean ) &
|
||||||
sudo timedatectl set-timezone "$TZ"
|
sudo timedatectl set-timezone "$TZ"
|
||||||
|
|
||||||
- name: 下载固件源码
|
- name: 下载固件源码
|
||||||
@ -90,7 +92,7 @@ jobs:
|
|||||||
cd openwrt
|
cd openwrt
|
||||||
echo -e "$(nproc) thread compile"
|
echo -e "$(nproc) thread compile"
|
||||||
make -j$(nproc) || make -j1 || make -j1 V=s
|
make -j$(nproc) || make -j1 || make -j1 V=s
|
||||||
echo "::set-output name=status::success"
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 设置当前的日期
|
- name: 设置当前的日期
|
||||||
id: date
|
id: date
|
||||||
@ -120,7 +122,7 @@ jobs:
|
|||||||
sudo -E apt-get -qq install rename
|
sudo -E apt-get -qq install rename
|
||||||
rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *.bin
|
rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *.bin
|
||||||
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
|
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
|
||||||
echo "::set-output name=status::success"
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 上传固件到github
|
- name: 上传固件到github
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
@ -137,7 +139,7 @@ jobs:
|
|||||||
touch release.txt
|
touch release.txt
|
||||||
echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt
|
echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt
|
||||||
echo "📥 固件下载" >> release.txt
|
echo "📥 固件下载" >> release.txt
|
||||||
echo "::set-output name=status::success"
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 发布至release
|
- name: 发布至release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user