Reproducible Builds for libhysteria2.so (#4249)

* Patch Go use 600296

* -buildvcs=false for libhysteria2

* fix if

* fixup! Build and cache libhysteria2.so (#4226)
This commit is contained in:
ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ
2025-01-11 11:38:47 +09:00
committed by GitHub
parent 4d875bc3d4
commit e0c8ece9b5
2 changed files with 9 additions and 2 deletions

View File

@@ -95,7 +95,14 @@ jobs:
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'
uses: actions/setup-go@v5
with:
go-mod-file: 'AndroidLibXrayLite/go.mod'
go-version-file: 'AndroidLibXrayLite/go.mod'
- name: Patch Go use 600296
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'
#https://go-review.googlesource.com/c/go/+/600296
run: |
cd "$(go env GOROOT)"
curl "https://go-review.googlesource.com/changes/go~600296/revisions/5/patch" | base64 -d | patch --verbose -p 1
- name: Build libhysteria2
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'