Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
working_directory: ~/code
steps:
- checkout
- run: sudo apt-get update && sudo apt-get install -y upx
# 修改这里,添加参数以自动接受变更
- run: sudo apt-get update --allow-releaseinfo-change && sudo apt-get install -y upx
- restore_cache:
key: go-pkg-{{ checksum "go.sum" }}
- run: ./build-release.sh
Expand All @@ -16,4 +17,4 @@ jobs:
key: go-pkg-{{ checksum "go.sum" }}
- store_artifacts:
path: bin
destination: bin
destination: bin
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Release

on:
workflow_dispatch:
inputs:
release_name:
description: 'Release name'
required: true
default: 'Release'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.23.0' # Specify the Go version

- name: Run build-release.sh
run: |
chmod +x ./build-release.sh
./build-release.sh

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.DUBUX }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.event.inputs.release_name }}
draft: false
prerelease: false

- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: bin/*
env:
GITHUB_TOKEN: ${{ secrets.DUBUX }}
50 changes: 26 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
module github.com/teddysun/v2ray-plugin

go 1.22
go 1.23.0

toolchain go1.24.0

require (
github.com/golang/protobuf v1.5.4
github.com/shirou/gopsutil/v3 v3.24.5
github.com/v2fly/v2ray-core/v5 v5.25.0
golang.org/x/sys v0.29.0
google.golang.org/protobuf v1.36.3
github.com/v2fly/v2ray-core/v5 v5.28.0
golang.org/x/sys v0.30.0
google.golang.org/protobuf v1.36.5
)

require (
github.com/adrg/xdg v0.5.3 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/google/pprof v0.0.0-20240320155624-b11c3daa6f07 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/google/pprof v0.0.0-20250302191652-9094ed2288e7 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/miekg/dns v1.1.62 // indirect
github.com/onsi/ginkgo/v2 v2.17.0 // indirect
github.com/lufia/plan9stats v0.0.0-20250303091104-876f3ea5145d // indirect
github.com/miekg/dns v1.1.63 // indirect
github.com/onsi/ginkgo/v2 v2.22.2 // indirect
github.com/pires/go-proxyproto v0.8.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/quic-go/quic-go v0.48.2 // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/quic-go/quic-go v0.50.0 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.9.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/grpc v1.69.4 // indirect
go.uber.org/mock v0.5.0 // indirect
golang.org/x/crypto v0.35.0 // indirect
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/net v0.36.0 // indirect
golang.org/x/sync v0.11.0 // indirect
golang.org/x/text v0.22.0 // indirect
golang.org/x/tools v0.30.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect
google.golang.org/grpc v1.71.0 // indirect
)
Loading