Compare commits
11 Commits
2024.04.27
...
2024.08.03
Author | SHA1 | Date | |
---|---|---|---|
37f1a19aa0 | |||
8d4dc505d9 | |||
e2d22d369e | |||
5cb2a0ee59 | |||
051edbae83 | |||
0d493541cb | |||
ec7b9d63ff | |||
cd22fe0fea | |||
85725e56e5 | |||
f01c217945 | |||
7056b3d65e |
19
.github/workflows/Redmi-AX6000-hanwckf.yml
vendored
19
.github/workflows/Redmi-AX6000-hanwckf.yml
vendored
@ -8,21 +8,14 @@
|
|||||||
# Description: Build OpenWrt using GitHub Actions
|
# Description: Build OpenWrt using GitHub Actions
|
||||||
#
|
#
|
||||||
###############改名字##############
|
###############改名字##############
|
||||||
name: Redmi-AX6000-hanwckf
|
name: Redmi-AX6000-hanwckf_Build
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
repository_dispatch:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
ssh:
|
|
||||||
description: 'SSH connection to Actions'
|
|
||||||
required: false
|
|
||||||
default: 'false'
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: 0 16 * * *
|
# - cron: 0 16 * * *
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REPO_URL: https://github.com/hanwckf/immortalwrt-mt798x
|
REPO_URL: http://mc.null.red:3000/Backups/immortalwrt-mt798x
|
||||||
REPO_BRANCH: openwrt-21.02
|
REPO_BRANCH: openwrt-21.02
|
||||||
FEEDS_CONF: feeds.conf.default
|
FEEDS_CONF: feeds.conf.default
|
||||||
CONFIG_FILE: hanwckf/Redmi-AX6000/.config
|
CONFIG_FILE: hanwckf/Redmi-AX6000/.config
|
||||||
@ -49,10 +42,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
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 update
|
||||||
sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004)
|
sudo -E apt-get -qq install ack antlr3 bc tar unzip asciidoc autoconf automake autopoint binutils bison build-essential bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
|
||||||
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 mkdir -p /workdir
|
sudo mkdir -p /workdir
|
||||||
sudo chown $USER:$GROUPS /workdir
|
sudo chown $USER:$GROUPS /workdir
|
||||||
|
|
||||||
@ -103,6 +95,7 @@ jobs:
|
|||||||
id: compile
|
id: compile
|
||||||
run: |
|
run: |
|
||||||
cd openwrt
|
cd openwrt
|
||||||
|
export FORCE_UNSAFE_CONFIGURE=1
|
||||||
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
|
||||||
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
|
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
|
||||||
@ -128,7 +121,7 @@ jobs:
|
|||||||
echo "status=success" >> $GITHUB_OUTPUT
|
echo "status=success" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 上传固件到github
|
- name: 上传固件到github
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@v3
|
||||||
if: steps.organize.outputs.status == 'success' && !cancelled()
|
if: steps.organize.outputs.status == 'success' && !cancelled()
|
||||||
with:
|
with:
|
||||||
name: ${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}
|
name: ${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}
|
||||||
|
@ -126,6 +126,7 @@ CONFIG_PACKAGE_kmod-nls-utf8=y
|
|||||||
CONFIG_PACKAGE_kmod-scsi-core=y
|
CONFIG_PACKAGE_kmod-scsi-core=y
|
||||||
CONFIG_PACKAGE_kmod-ipt-offload=y
|
CONFIG_PACKAGE_kmod-ipt-offload=y
|
||||||
CONFIG_PACKAGE_kmod-nf-flow=y
|
CONFIG_PACKAGE_kmod-nf-flow=y
|
||||||
|
CONFIG_PACKAGE_kmod-wireguard=y
|
||||||
|
|
||||||
CONFIG_PACKAGE_libblkid=y
|
CONFIG_PACKAGE_libblkid=y
|
||||||
CONFIG_PACKAGE_libevdev=y
|
CONFIG_PACKAGE_libevdev=y
|
||||||
|
Reference in New Issue
Block a user