This commit is contained in:
Alireza Ahmadi
2026-03-28 21:32:37 +01:00
parent 764e1ba165
commit 1f393fc37f
6 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 24 node-version: 25
- name: Install dependencies and build frontend - name: Install dependencies and build frontend
run: | run: |
cd frontend cd frontend
+4 -5
View File
@@ -19,11 +19,10 @@ on:
- 's-ui.service' - 's-ui.service'
env: env:
NODE_VERSION: "24" NODE_VERSION: "25"
CRONET_GO_VERSION: "cba7b9ac0399055aa49fbdc57c03c374f58e1597" CRONET_GO_VERSION: "2fef65f9dba90ddb89a87d00a6eb6165487c10c1"
CRONET_GO_REPO: https://github.com/sagernet/cronet-go.git CRONET_GO_REPO: https://github.com/sagernet/cronet-go.git
BOOTLIN_BASE_URL: https://toolchains.bootlin.com/downloads/releases/toolchains BOOTLIN_BASE_URL: https://toolchains.bootlin.com/downloads/releases/toolchains
CHROMIUM_CACHE_KEY_SUFFIX: musl-cba7b9ac0399055aa49fbdc57c03c374f58e1597
jobs: jobs:
build-frontend: build-frontend:
@@ -45,7 +44,7 @@ jobs:
- name: Build frontend - name: Build frontend
run: | run: |
cd frontend cd frontend
npm ci npm install
npm run build npm run build
cd .. cd ..
@@ -115,7 +114,7 @@ jobs:
~/cronet-go/naiveproxy/src/gn/out/ ~/cronet-go/naiveproxy/src/gn/out/
~/cronet-go/naiveproxy/src/chrome/build/pgo_profiles/ ~/cronet-go/naiveproxy/src/chrome/build/pgo_profiles/
~/cronet-go/naiveproxy/src/out/sysroot-build/ ~/cronet-go/naiveproxy/src/out/sysroot-build/
key: chromium-toolchain-${{ matrix.platform }}-${{ env.CHROMIUM_CACHE_KEY_SUFFIX }} key: chromium-toolchain-${{ matrix.platform }}-musl-${{ env.CRONET_GO_VERSION }}
- name: Build cronet lib and set toolchain env (CC, CXX, CGO_LDFLAGS, PATH) - name: Build cronet lib and set toolchain env (CC, CXX, CGO_LDFLAGS, PATH)
if: matrix.naive if: matrix.naive
+1 -1
View File
@@ -18,7 +18,7 @@ on:
- 'windows/**' - 'windows/**'
env: env:
NODE_VERSION: "24" NODE_VERSION: "25"
TAGS: "with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_naive_outbound,with_purego,badlinkname,tfogo_checklinkname0,with_tailscale" TAGS: "with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_naive_outbound,with_purego,badlinkname,tfogo_checklinkname0,with_tailscale"
LIBCRONET_BASE_URL: "https://github.com/SagerNet/cronet-go/releases/latest/download" LIBCRONET_BASE_URL: "https://github.com/SagerNet/cronet-go/releases/latest/download"
+1 -1
View File
@@ -1 +1 @@
1.4.0 1.4.1
+1 -1
View File
@@ -560,7 +560,7 @@ func (s *Box) Close() error {
} }
func (s *Box) Uptime() uint32 { func (s *Box) Uptime() uint32 {
return uint32(time.Now().Sub(s.createdAt).Seconds()) return uint32(time.Since(s.createdAt).Seconds())
} }
func (s *Box) Network() adapter.NetworkManager { func (s *Box) Network() adapter.NetworkManager {