ci: drop 18.06 i18n

This commit is contained in:
sbwml 2022-11-23 15:17:11 +08:00
parent acc67abbfb
commit 6ab0c045a2
3 changed files with 3 additions and 59 deletions

View File

@ -1,49 +0,0 @@
name: i18n-luci-18.06
on:
release:
types:
- published
jobs:
build:
name: Build openwrt-18.06 luci-i18n package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- x86_64
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Building packages
uses: sbwml/immortalwrt-gh-action-sdk@master
env:
ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4
FEEDNAME: packages_ci
PACKAGES: luci-app-alist
NO_REFRESH_CHECK: true
- name: Move created packages to project dir
run: |
cp bin/packages/${{ matrix.arch }}/packages_ci/*i18n*zh-cn*.ipk . || true
for i in `ls *.ipk`; do mv -f $i `echo "openwrt-18.06_"$i`; done
- name: Store packages
uses: actions/upload-artifact@v3
if: github.event_name != 'release'
with:
name: ${{ matrix.arch}}-${{ github.sha}}-packages
path: "*.ipk"
- name: Upload packages
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.workflow_token }}
allowUpdates: true
replacesArtifacts: true
artifacts: "*.ipk"

View File

@ -23,7 +23,7 @@ A file list program that supports multiple storage.
--------------
## How to install prebuilt packages (OpenWrt 18-22 & master)
## How to install prebuilt packages (OpenWrt 21,22,master)
- Login OpenWrt terminal (SSH)

View File

@ -37,10 +37,7 @@ CHECK() (
echo -e "\r\n${GREEN_COLOR}Checking platform ...${RES}\r\n"
prebuilt="aarch64_cortex-a53 aarch64_cortex-a72 aarch64_generic arm_arm1176jzf-s_vfp arm_arm926ej-s arm_cortex-a15_neon-vfpv4 arm_cortex-a5_vfpv4 arm_cortex-a7 arm_cortex-a7_neon-vfpv4 arm_cortex-a8_vfpv3 arm_cortex-a9 arm_cortex-a9_neon arm_cortex-a9_vfpv3-d16 arm_fa526 arm_mpcore arm_xscale i386_pentium-mmx i386_pentium4 mips64_octeonplus mips_24kc mips_4kec mips_mips32 mipsel_24kc mipsel_24kc_24kf mipsel_74kc mipsel_mips32 x86_64"
verif=$(expr match "$prebuilt" ".*\($platform\)")
if [ "$version" != 18 -a "$version" != 19 -a "$version" != 21 -a "$version" != 22 ]; then
echo -e "${RED_COLOR}Error! OpenWrt \"$(cat /etc/os-release | grep VERSION_ID | awk -F "[\"\"]" '{print $2}')\" version is not supported.${RES}"
exit 1;
elif [[ ! $verif ]]; then
if [[ ! $verif ]]; then
echo -e "${RED_COLOR}Error! The current \"$platform\" platform is not currently supported.${RES}"
exit 1;
else
@ -62,11 +59,7 @@ DOWNLOAD() (
alist=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep $platform.ipk | head -1 | awk '{print $2}' | sed 's/\"//g')
luci_app=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-app-alist_ | head -1 | awk '{print $2}' | sed 's/\"//g')
if [ "$version" = 18 ]; then
luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep openwrt-18.06_luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g')
else
luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g')
fi
luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g')
# download
echo -e "${GREEN_COLOR}Downloading $alist ...${RES}"