41 Commits
Author SHA1 Message Date
Markson Pigeonzilla Plus b0f7f5efc3 feat: add ci name 2026-11-14 22:32:43 +08:00
Zakk f2b573c3eb fix(ci): apply the matrix's linker flags in the pull request build
The pull request build set EXTRA_LDFLAGS as a prefix of the go build
command and expanded ${EXTRA_LDFLAGS} in the same command, which the
shell does before the prefix assignment takes effect, so the flags were
always empty. The release build sets them in the job environment and
was not affected. Use the matrix value directly.
2026-11-14 23:18:01 +11:00
Zakk 543b926d8c ci: link the loong64 binaries statically against musl
loong64 builds with cgo for mattn/go-sqlite3, and zig targeted
loongarch64-linux-gnu, so since 2.5.14 both binaries were linked
dynamically against glibc (interpreter
/lib64/ld-linux-loongarch-lp64d.so.1). The Alpine loongarch64 package
installed but neither binary could start on musl. Target musl and link
statically instead, so the binaries run on glibc and musl systems
alike. -linkmode=external makes the core, which has no cgo package of
its own, go through zig as well; with the internal linker it cannot
resolve the libc symbols of a static build.
2026-11-14 23:07:02 +11:00
Markson Hon 50c91f3ee9 fix(ci): install zig with a composite action
_install_zig.yml was declared as a reusable workflow but called from a
step, and a step-level uses only accepts an action, so the workflows
failed to validate. A job-level workflow call cannot help here either,
because Zig has to be on PATH in the same job as the build.

Move the install into .github/actions/install-zig, which pins the Zig
version itself and keeps both call sites on a single step.
2026-11-12 19:16:32 +08:00
Markson Hon 0248748316 feat(ci): build loong64 and riscv64 while pull request 2026-11-12 19:03:57 +08:00
Markson GuGa Beyond 12ceb33669 feat: upgrade go version to 1.27 2026-11-02 11:05:18 +08:00
Zakk ae8e5a5047 chore: drop what nothing reaches
Three service packages outside the executable's dependency graph
(common/antiPollution, pkg/util/gopeed, kernel/vmessInfo), a blank
import of miekg/dns the core already imports, the --core-type flag no
code read, the PutAccount handler whose route was commented out, two GUI
API wrappers without a caller, two .SRCINFO files the release regenerates
and an unreferenced runit sample. The workflow path filters watched a
root go.mod that does not exist and the PR build skipped core/.
2026-09-20 09:17:11 +10:00
Zakk e05e672fe5 build: drop the tinytun build tag and ship Wintun from its own package
The binaries workflow, the PR workflow and build.ps1 no longer pass
-tags tinytun; there is nothing behind the tag. The Windows installer
takes wintun.dll from the official 0.14.1 package, pinned by hash, one
DLL per architecture, and deletes a tinytun.exe an earlier installer left
in the application's bin directory. The README states what the built-in
TUN does and its known limitation on Windows and macOS.
2026-09-19 10:34:56 +10:00
Markson GuGa Beyond cffe97ca3d core: migrate xray-core from git submodule to go mod and port QUIC outbounds to daeuniverse/outbound
The vendored core/xray submodule is dropped. xray-core is now pinned via a
go mod pseudo-version resolving to v26.7.28 (commit 5ca6f4b7); v26 tags are
not directly resolvable because Xray's module path lacks the /v26 suffix, so
the pin must be made by commit hash. CI workflows and the AUR PKGBUILD no
longer need "submodules: recursive" / "git submodule update".

The juicity and tuic outbounds are ported from softwind to
github.com/daeuniverse/outbound (temporarily replaced with an olicesx fork
pending sticky-ip support):

- Dialer calls use DialContext; the network string is decoded with
  netproxy.ParseMagicNetwork instead of a "udp" prefix check, since it may
  be binary-encoded via netproxy.MagicNetwork.
- A packetConnAdapter wraps xray's UDP dial result: outbound asserts the
  underlay conn to netproxy.PacketConn whose ReadFrom/WriteTo signatures
  (netip.AddrPort / string) differ from net.PacketConn, while xray returns
  *internet.PacketConnWrapper.
2026-09-18 13:15:45 +08:00
Markson Hon e185ac0691 ci: fix pull_request.yml 2026-08-18 22:25:11 +08:00
Markson Hon fbd5cc2c11 ci: pr builds should include core 2026-08-18 21:41:28 +08:00
Markson GuGa Beyond b25cc46c80 ci: update checkout to v7 2026-08-09 15:42:07 +08:00
Markson Pigeonzilla Plus 05a743ed30 ci: format yaml format 2026-06-25 22:33:26 +08:00
Markson Hon cfe5a69049 chore: update xray submodule to v26.6.1 and replace allowInsecure with cert pinning
- Update core/xray submodule from v1.260327.0 (v26.3.27) to v26.6.1
- Remove deprecated AllowInsecure field from all protocol structs
- Add PinnedPeerCertSha256 and VerifyPeerCertByName fields (service layer)
- Update ngui (Nuxt) frontend with text inputs for new fields
- Update gui (Vue 2) frontend with text inputs for new fields
- Keep existing PinnedSHA256 for juicity (no duplicate)
- Backward compatible: old allowInsecure params silently ignored
- Run go mod tidy to update dependencies
2026-06-20 22:51:17 +08:00
Markson Hon 090c711544 ci: use setup-node instead of brew script
ci: upgrade download-artifact@v4 to v7

ci: use matrix workflow to build

ci: use matrix workflow to build

ci: use matrix workflow to build

ci: use matrix workflow to build
2026-04-19 18:36:56 +08:00
82e65fb7f9 ci(build): refactor reusable workflows for TinyTun builds
Squashed from:
- 916e2f66 Optimize CI: add tinytun build tag for win/mac/linux x64+arm64, abstract web build into reusable workflow
- 471b623f Remove with_gvisor build tag from all scripts and CI workflows
- bb6e2fd6 Split binary build, Linux packages, and Windows installer into reusable workflows
- 19584dcb ci: fix windows inno installer build
- 378934b8 ci: return go 1.24

Co-authored-by: Markson Pigeonzilla <marksonpigeonzilla@bugdows.cn>
Co-authored-by: Markson Hon <marksonhon@nixos.local>
2026-03-21 15:01:51 +08:00
Markson PigeonzillaandMarkson Hon 608b44e2f8 fix(windows): carry forward env, startup, and legacy TUN follow-ups
Squashed from:
- 856a3730 ci: update go to 1.26
- 191be38f tun: fix IPv6 address under win
- 3ca4d5cd windows: v2rayA should read win env like %temp%
- 48a84438 windows: v2rayA should start after modified PATH
- c87bbf62 fix .exe ext-name under windows
- 614bfe1c dns: fix a error about dns format
- 991319ff pre.go: don't create C:\etc
- 9f31b39c translated all comments to English
- aaa269f7 try to fix Tun DNS
- 25c84ad9 面向云代理会话的 VS Code 中的检查点

Co-authored-by: Markson Hon <markson@nixos.local>
2026-03-21 15:00:28 +08:00
Markson Pigeonzilla 6f0a5ed999 ci: try to fix installer building 2026-02-05 23:17:02 +08:00
Markson Hon b29b8ae84d fix install building 2026-02-05 22:23:38 +08:00
Markson Pigeonzilla c4f9ccf0db ci: update nodejs to version 24 2026-02-05 18:48:20 +08:00
Markson Pigeonzilla f199518f6a ci: update nodejs to version 24 2026-02-05 18:41:45 +08:00
Markson Hon 4cb32177c7 ci: use go 1.24 for 1.25 has a issue go#77217 2026-02-04 12:47:12 +08:00
Markson Hon 880e119254 ci: use node20 forever 2024-11-24 16:14:46 +08:00
Markson Hon 728bce7d57 ci: use node20 forever 2024-11-24 16:11:49 +08:00
Markson Hon 9a1ba56548 ci: fix test build
ci: don't upload singtun builds
2024-06-19 20:31:06 +08:00
Markson Hon c723b2ee18 ci: add test and beta release workflows 2024-06-19 19:49:07 +08:00
Markson Hon e253122bd4 ci: add singtun builds 2024-04-16 20:33:56 +08:00
Markson Hon f5d1efbf3a ci: add go cache config 2024-03-01 19:31:14 +08:00
Markson Hon 42f766efd2 ci: better PR workflow 2024-02-23 07:13:40 +08:00
Markson Hon 43f9b81ce3 ci: fix download releases 2024-02-22 23:00:34 +08:00
Markson Hon aff98dad37 ci: update node16 to node 20 2024-02-22 22:25:07 +08:00
Markson Hon 65fa1db673 ci: update actions/checkout@v3 to v4.1.1 2024-02-22 20:54:47 +08:00
Markson Hon c988e79bcf pull_request.yml: fix builds 2023-11-25 13:30:56 +08:00
Markson Hon 1ae2689896 pull_request.yml: fix build on windows 2023-11-25 12:00:18 +08:00
Markson Hon 009f9b7d3d pull_request.yml: fix build on windows 2023-11-25 11:45:46 +08:00
Markson Hon 452f1ff628 pull_request.yml: build on both win, linux, darwin 2023-11-25 09:14:55 +08:00
Markson dfac9bebac pull_request.yml: Fix building v2rayA 2023-11-04 22:01:40 +08:00
Markson da51a9febe pull_request.yml: Fix building v2rayA 2023-11-04 21:14:55 +08:00
Markson 00fd3c2f7c Fix build of PR go moudle 2023-10-31 22:02:54 +08:00
Markson Hon 039d348281 ci: fix yaml's form 2023-10-20 23:49:50 +08:00
Markson Hon 03c087a614 ci: set target branch to main 2023-10-20 23:46:32 +08:00