-
Notifications
You must be signed in to change notification settings - Fork 820
73 lines (64 loc) · 2.5 KB
/
T2 build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: T2 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
- x86_64
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Build
uses: kenzok8/gh-action-sdk@hash
env:
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}
FEEDNAME: packages_ci
PACKAGES: luci-app-homeproxy luci-app-mihomo 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 }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
retain_days: 10
keep_minimum_runs: 2
- name: Remove old Releases
uses: dev-drprasad/delete-older-releases@master
with:
keep_latest: 60
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}