sbwml / openwrt_helloworld

Extra Packages for OpenWrt 23.05
https://opkg.cooluc.com
70 stars 40 forks source link

关于sbwml/openwrt-gh-action-sdk/tree/helloworld,golang升了,可以升级一下rust吗 #1

Closed qwerttvv closed 8 months ago

qwerttvv commented 8 months ago

https://github.com/sbwml/openwrt-gh-action-sdk/tree/helloworld

具体的sdk版本对应的rust版本号我不知道

用ARCH: ${{ matrix.arch }}-openwrt-23.05可以编译通过,但是在23以下版本的openwrt系统用的话会有一串依赖问题

用ARCH: ${{ matrix.arch }}-openwrt-22.03编译失败,rust版本太低

这两天搜了搜,看到大佬把golang升级了,可以也把rust版本升级到最后一个支持MIPS的1.74.1吗?这个版本保障了现在几乎全部rust软件可正常编译运行,并且保留了MIPS设备的支持。

另外我多问一句题外话,用actions/cache在给openwrt-gh-action-sdk加入cache,加哪些目录啊,有示例吗?

sbwml commented 8 months ago

No,我没有rust 的需求。即使ss rust 我直接用prebuilt,因为 rust/host 的编译太过臃肿

qwerttvv commented 8 months ago

No,我没有rust 的需求。即使ss rust 我直接用prebuilt,因为 rust/host 的编译太过臃肿

呃,就是看ss rust那边已经去掉了mips的prebuilt https://github.com/shadowsocks/shadowsocks-rust/commit/f1826a74e13ab74156a5f6fb481fcb70db600b90 然后自己单独编译ss rust的话,哪怕upx压缩一下也挺占地方的,放在旧固件的机器里,多占本身就不大而且很紧张的机器存储

没事,我再想想别的方法,多谢大佬

sbwml commented 8 months ago

ss rust mips/mipsel 架构已添加支持 https://github.com/sbwml/openwrt_helloworld/commit/d5f50af8707fb79e3bdbee9ca2445a2f801a67cb

qwerttvv commented 8 months ago

ss rust mips/mipsel 架构已添加支持 d5f50af

多谢多谢多谢

qwerttvv commented 8 months ago

ss rust mips/mipsel 架构已添加支持 d5f50af

2024-02-28T07:30:48.3738615Z make[2]: Entering directory '/feed/shadowsocks-rust'
2024-02-28T07:30:48.5734458Z mkdir -p /builder/dl
2024-02-28T07:30:48.5764853Z SHELL= flock /builder/tmp/.shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz.flock -c '    /builder/scripts/download.pl "/builder/dl" "shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz" "d590c25d697eedf13237531593dac2f41e3dd180a999adcd970182913e234fc3" "" "https://github.com/sbwml/shadowsocks-rust-mips/releases/download/v1.18.1/"    '
2024-02-28T07:30:48.6056392Z + curl -f --connect-timeout 20 --retry 5 --location https://github.com/sbwml/shadowsocks-rust-mips/releases/download/v1.18.1/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz
2024-02-28T07:30:48.6119104Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-02-28T07:30:48.6120108Z                                  Dload  Upload   Total   Spent    Left  Speed
2024-02-28T07:30:48.6120583Z 
2024-02-28T07:30:48.7297734Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:48.7298774Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:48.7299625Z curl: (22) The requested URL returned error: 404 
2024-02-28T07:30:48.7313531Z Download failed.
2024-02-28T07:30:48.7385331Z + curl -f --connect-timeout 20 --retry 5 --location https://sources.cdn.openwrt.org/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz
2024-02-28T07:30:48.7446955Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-02-28T07:30:48.7448196Z                                  Dload  Upload   Total   Spent    Left  Speed
2024-02-28T07:30:48.7448735Z 
2024-02-28T07:30:48.7604417Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:48.7605389Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:48.7605900Z curl: (22) The requested URL returned error: 404 
2024-02-28T07:30:48.7621477Z Download failed.
2024-02-28T07:30:48.7693159Z + curl -f --connect-timeout 20 --retry 5 --location https://sources.openwrt.org/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz
2024-02-28T07:30:48.7756793Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-02-28T07:30:48.7757685Z                                  Dload  Upload   Total   Spent    Left  Speed
2024-02-28T07:30:48.7758028Z 
2024-02-28T07:30:49.2539389Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:49.2540870Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:49.2547864Z curl: (22) The requested URL returned error: 404 Not Found
2024-02-28T07:30:49.2560609Z Download failed.
2024-02-28T07:30:49.2633982Z + curl -f --connect-timeout 20 --retry 5 --location https://mirror2.openwrt.org/sources/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz
2024-02-28T07:30:49.2696443Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-02-28T07:30:49.2697394Z                                  Dload  Upload   Total   Spent    Left  Speed
2024-02-28T07:30:49.2697913Z 
2024-02-28T07:30:49.7080682Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:49.7081784Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-02-28T07:30:49.7087047Z curl: (22) The requested URL returned error: 404 Not Found
2024-02-28T07:30:49.7099342Z Download failed.
2024-02-28T07:30:49.7100663Z No more mirrors to try - giving up.
2024-02-28T07:30:49.7111619Z make[2]: *** [Makefile:89: /builder/dl/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz] Error 2
2024-02-28T07:30:49.7112887Z make[2]: Leaving directory '/feed/shadowsocks-rust'
2024-02-28T07:30:49.7116892Z time: package/feeds/packages_ci/shadowsocks-rust/compile#0.25#0.17#1.34
2024-02-28T07:30:49.7124308Z     ERROR: package/feeds/packages_ci/shadowsocks-rust failed to build.
2024-02-28T07:30:49.7128736Z make[1]: *** [package/Makefile:120: package/feeds/packages_ci/shadowsocks-rust/compile] Error 1
2024-02-28T07:30:49.7131520Z make[1]: Leaving directory '/builder'
2024-02-28T07:30:49.7135031Z make: *** [/builder/include/toplevel.mk:223: package/luci-app-ssr-plus/compile] Error 2
2024-02-28T07:30:52.7178830Z ##[error]Process completed with exit code 2.

好像 https://github.com/sbwml/openwrt_helloworld/commit/d5f50af8707fb79e3bdbee9ca2445a2f801a67cb 改挂了啊,我拿aarch64_cortex-a53先试了一下,去请求 https://github.com/sbwml/shadowsocks-rust-mips/releases/download/v1.18.1/shadowsocks-v1.18.1.aarch64-unknown-linux-musl.tar.xz

sbwml commented 8 months ago

https://github.com/sbwml/openwrt_helloworld/commit/1dd5fda2ca350446b2ce1753612d08b81f068973