Skip to content

Commit

Permalink
build libtun2socks
Browse files Browse the repository at this point in the history
  • Loading branch information
UjuiUjuMandan committed Dec 21, 2024
1 parent d3b03fc commit 059f874
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
cd "$(go env GOROOT)"
curl "https://go-review.googlesource.com/changes/go~600296/revisions/5/patch" | base64 -d | patch --verbose -p 1
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
# Same version as https://gitlab.com/fdroid/fdroiddata/metadata/com.v2ray.ang.yml
with:
ndk-version: r27

- name: Install gomobile
run: |
go install golang.org/x/mobile/cmd/[email protected]
Expand All @@ -39,9 +46,24 @@ jobs:
- name: Setup Android environment
uses: android-actions/setup-android@v3

- name: Build dependencies
- name: Prepare build dir
run: |
mkdir ${{ github.workspace }}/build
- name: Build libtun2socks
run: |
cd ${{ github.workspace }}/build
git clone --depth=1 -b master https://github.com/2dust/AndroidLibV2rayLite.git
cd AndroidLibV2rayLite
git submodule update --init
bash compile-tun2socks.sh
tar -xvzf libtun2socks.so.tgz
cp -r libs/* ${{ github.workspace }}/V2rayNG/app/libs/
env:
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build libv2ray
run: |
cd ${{ github.workspace }}/build
git clone --depth=1 -b main https://github.com/2dust/AndroidLibXrayLite.git
cd AndroidLibXrayLite
Expand Down

0 comments on commit 059f874

Please sign in to comment.