File tree 7 files changed +27
-25
lines changed
7 files changed +27
-25
lines changed Original file line number Diff line number Diff line change 18
18
runs-on : ubuntu-latest
19
19
20
20
steps :
21
- - uses : actions/checkout@v3
21
+ - uses : actions/checkout@v4
22
22
23
23
# https://github.com/marketplace/actions/git-changesets
24
24
- id : changed_files
Original file line number Diff line number Diff line change 21
21
sudo apt-get -y install git
22
22
23
23
- name : Clone OpenClash Repository
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
with :
26
26
ref : core
27
27
32
32
echo "current_id: $(sed -n 1p ./dev/core_version)"
33
33
34
34
- name : Clone Clash Repository
35
- uses : actions/checkout@v3
35
+ uses : actions/checkout@v4
36
36
with :
37
37
repository : Dreamacro/clash
38
38
ref : dev
64
64
echo "upx=../upx-3.95-amd64_linux/upx" >> $GITHUB_ENV
65
65
66
66
- name : Clone OpenClash Repository
67
- uses : actions/checkout@v3
67
+ uses : actions/checkout@v4
68
68
with :
69
69
ref : core
70
70
82
82
check-latest : true
83
83
84
84
- name : Clone Clash Repository
85
- uses : actions/checkout@v3
85
+ uses : actions/checkout@v4
86
86
with :
87
87
repository : Dreamacro/clash
88
88
ref : dev
98
98
cp -rf "./bin/." "../tmp/bin/"
99
99
100
100
- name : Clone OpenClash Repository
101
- uses : actions/checkout@v3
101
+ uses : actions/checkout@v4
102
102
with :
103
103
ref : core
104
104
Original file line number Diff line number Diff line change 21
21
sudo apt-get -y install git
22
22
23
23
- name : Clone OpenClash Repository
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
with :
26
26
ref : core
27
27
32
32
echo "current_id: $(sed -n 3p ./dev/core_version)"
33
33
34
34
- name : Clone Clash Meta Repository
35
- uses : actions/checkout@v3
35
+ uses : actions/checkout@v4
36
36
with :
37
37
repository : MetaCubeX/mihomo
38
38
ref : Alpha
63
63
echo "upx=../upx-3.95-amd64_linux/upx" >> $GITHUB_ENV
64
64
65
65
- name : Clone OpenClash Repository
66
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
67
67
with :
68
68
ref : core
69
69
81
81
check-latest : true
82
82
83
83
- name : Clone Clash Meta Repository
84
- uses : actions/checkout@v3
84
+ uses : actions/checkout@v4
85
85
with :
86
86
repository : MetaCubeX/mihomo
87
87
ref : Alpha
96
96
cp -rf "./bin/." "../tmp/bin/"
97
97
98
98
- name : Clone OpenClash Repository
99
- uses : actions/checkout@v3
99
+ uses : actions/checkout@v4
100
100
with :
101
101
ref : core
102
102
Original file line number Diff line number Diff line change 17
17
current_version : ${{ steps.current_version.outputs.version }}
18
18
steps :
19
19
- name : Clone Repository
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
with :
22
22
ref : ${{ github.ref_name }}
23
23
28
28
echo "New Version: $(grep 'PKG_VERSION:=' ./luci-app-openclash/Makefile |awk -F '=' '{print $2}')"
29
29
30
30
- name : Clone Repository
31
- uses : actions/checkout@v3
31
+ uses : actions/checkout@v4
32
32
with :
33
33
ref : package
34
34
44
44
if : ${{ needs.Get-Version.outputs.version != needs.Get-Version.outputs.current_version }}
45
45
steps :
46
46
- name : Clone OpenClash dev Repository
47
- uses : actions/checkout@v3
47
+ uses : actions/checkout@v4
48
48
with :
49
49
ref : ${{ github.ref_name }}
50
50
@@ -59,10 +59,10 @@ jobs:
59
59
run : |
60
60
cd ..
61
61
mkdir tmp
62
- curl -SLk --connect-timeout 30 --retry 2 "https://archive.openwrt.org/snapshots/trunk /ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.16 .Linux-x86_64.tar.bz2" -o "./tmp/SDK.tar.bz2"
62
+ curl -SLk --connect-timeout 30 --retry 2 "https://archive.openwrt.org/chaos_calmer/15.05.1 /ar71xx/generic/OpenWrt-SDK-15.05.1- ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2 .Linux-x86_64.tar.bz2" -o "./tmp/SDK.tar.bz2"
63
63
cd \tmp
64
64
tar xjf SDK.tar.bz2
65
- mv "OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.16 .Linux-x86_64" "SDK"
65
+ mv "OpenWrt-SDK-15.05.1- ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2 .Linux-x86_64" "SDK"
66
66
67
67
- name : Copy OpenClash Source Codes
68
68
run : |
85
85
make package/luci-app-openclash/compile V=99
86
86
87
87
- name : Switch OpenClash Repository to Package
88
- uses : actions/checkout@v3
88
+ uses : actions/checkout@v4
89
89
with :
90
90
ref : package
91
91
Original file line number Diff line number Diff line change 21
21
sudo apt-get -y install curl git gzip
22
22
23
23
- name : Clone OpenClash Repository
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
with :
26
26
ref : core
27
27
63
63
echo "upx=../upx-3.95-amd64_linux/upx" >> $GITHUB_ENV
64
64
65
65
- name : Clone OpenClash Repository
66
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
67
67
with :
68
68
ref : core
69
69
Original file line number Diff line number Diff line change 17
17
sudo apt-get -y install git
18
18
19
19
- name : Clone OpenClash Repository
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
with :
22
22
ref : core
23
23
39
39
fi
40
40
41
41
- name : Clone OpenClash Repository
42
- uses : actions/checkout@v3
42
+ uses : actions/checkout@v4
43
43
with :
44
44
ref : package
45
45
Original file line number Diff line number Diff line change 68
68
---
69
69
70
70
71
- 从 OpenWrt 的 [ SDK] ( https://archive.openwrt.org/snapshots/trunk /ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.16 .Linux-x86_64.tar.bz2 ) 编译
71
+ 从 OpenWrt 的 [ SDK] ( https://archive.openwrt.org/chaos_calmer/15.05.1 /ar71xx/generic/OpenWrt-SDK-15.05.1- ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2 .Linux-x86_64.tar.bz2 ) 编译
72
72
``` bash
73
73
# 解压下载好的 SDK
74
- tar xjf OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.16.Linux-x86_64.tar.bz2
75
- cd OpenWrt-SDK-ar71xx-*
74
+ curl -SLk --connect-timeout 30 --retry 2 " https://archive.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2" -o " /tmp/SDK.tar.bz2"
75
+ cd \t mp
76
+ tar xjf SDK.tar.bz2
77
+ cd OpenWrt-SDK-15.05.1-*
76
78
77
79
# Clone 项目
78
80
mkdir package/luci-app-openclash
@@ -96,7 +98,7 @@ cd ../..
96
98
make package/luci-app-openclash/luci-app-openclash/compile V=99
97
99
98
100
# IPK文件位置
99
- ./bin/ar71xx/packages/base/luci-app-openclash_0.39.7 -beta_all.ipk
101
+ ./bin/ar71xx/packages/base/luci-app-openclash_ * -beta_all.ipk
100
102
```
101
103
102
104
``` bash
You can’t perform that action at this time.
0 commit comments