small/.github/workflows/T9 build.yml

99 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: T9 Build
on:
workflow_dispatch:
push:
tags:
- v.**
jobs:
build:
name: build ${{ matrix.arch }}-${{ matrix.sdk }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk:
- 23.05.2
arch:
- 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
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
retain_days: 10
keep_minimum_runs: 8
- name: Remove old Releases
uses: dev-drprasad/delete-older-releases@master
with:
keep_latest: 81
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Build
uses: kenzok8/gh-action-sdk@hash
env:
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}
FEEDNAME: packages_ci
PACKAGES: luci-app-fchomo luci-app-homeproxy luci-app-nikki luci-app-openclash luci-app-passwall luci-app-passwall2 luci-app-ssr-plus luci-app-bypass brook hysteria ipt2socks pdnsd-alt redsocks2 shadow-tls trojan tuic-client xray-plugin v2ray-core v2ray-geodata naiveproxy sing-box
NO_REFRESH_CHECK: true
IGNORE_ERRORS: true
- name: Store packages
uses: actions/upload-artifact@main
with:
name: ${{ matrix.arch }}-${{ matrix.sdk }}
path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
- name: Zip packages
run: |
zip -j ${{ matrix.arch }}-${{ matrix.sdk }}.zip bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
echo -e "**文件说明** 🎈:\n" >> release.txt
echo -e "1. 默认ssr与passwall的插件与依赖整合包\n" >> release.txt
echo -e "2. 使用方法将整合包上传到openwrt设备的tmp目录输入命令 \`opkg install *.ipk\`\n" >> release.txt
echo -e "3. 默认压缩包里包含ssr passwall bypass passwall2 插件\n" >> release.txt
echo -e "4. 如果单独安装ssr与依赖\`rm -rf {*passwall*,*bypass*,*homeproxy*}\`\n" >> release.txt
- name: Upload packages
uses: ncipollo/release-action@main
with:
token: ${{ secrets.ACCESS_TOKEN }}
artifacts: "${{ matrix.arch }}-${{ matrix.sdk }}.zip,bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"
allowUpdates: true
replacesArtifacts: true
bodyFile: "release.txt"
tag: ${{ github.run_number }}-${{ matrix.arch }}