Skip to content

Commit

Permalink
Update Xray-core to version v25.3.6
Browse files Browse the repository at this point in the history
[xray]
  • Loading branch information
outspace committed Mar 7, 2025
1 parent 2fcff0a commit 1d34a55
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build_xray.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: XTLS/Xray-core
ref: main
ref: v25.3.6
path: xray-core

- name: Show workflow information
Expand All @@ -171,7 +171,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: 1.24
check-latest: true

- name: Get project dependencies
Expand All @@ -183,8 +183,14 @@ jobs:
run: |
cd xray-core
mkdir -p build_assets
make
find . -maxdepth 1 -type f -regex '.*\(wxray\|xray\|xray_softfloat\)\(\|.exe\)' -exec mv {} ./build_assets/ \;
COMMID=$(git describe --always --dirty)
if [[ ${GOOS} == 'windows' ]]; then
echo 'Building Xray for Windows...'
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
else
echo 'Building Xray...'
go build -o build_assets/xray -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=${COMMID} -s -w -buildid=" -v ./main
fi
- name: Restore Cache
uses: actions/cache/restore@v3
Expand Down

0 comments on commit 1d34a55

Please sign in to comment.