Skip to content

Commit 5203f4c

Browse files
committed
Update Xray-core to version v25.3.6
[xray]
1 parent 2fcff0a commit 5203f4c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build_xray.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
uses: actions/checkout@v3
160160
with:
161161
repository: XTLS/Xray-core
162-
ref: main
162+
ref: v25.3.6
163163
path: xray-core
164164

165165
- name: Show workflow information
@@ -171,7 +171,7 @@ jobs:
171171
- name: Set up Go
172172
uses: actions/setup-go@v5
173173
with:
174-
go-version: '1.21'
174+
go-version-file: 1.24
175175
check-latest: true
176176

177177
- name: Get project dependencies
@@ -183,8 +183,14 @@ jobs:
183183
run: |
184184
cd xray-core
185185
mkdir -p build_assets
186-
make
187-
find . -maxdepth 1 -type f -regex '.*\(wxray\|xray\|xray_softfloat\)\(\|.exe\)' -exec mv {} ./build_assets/ \;
186+
COMMID=$(git describe --always --dirty)
187+
if [[ ${GOOS} == 'windows' ]]; then
188+
echo 'Building Xray for Windows...'
189+
go build -o build_assets/xray.exe -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=${COMMID} -s -w -buildid=" -v ./main
190+
else
191+
echo 'Building Xray...'
192+
go build -o build_assets/xray -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=${COMMID} -s -w -buildid=" -v ./main
193+
fi
188194
189195
- name: Restore Cache
190196
uses: actions/cache/restore@v3

0 commit comments

Comments
 (0)