forked from 2dust/v2rayNG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a78a5e3
commit 218423a
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,12 +78,16 @@ jobs: | |
with: | ||
go-version: '1.23.4' | ||
cache: false | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
|
||
- name: Install gomobile | ||
if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true' | ||
run: | | ||
CGO_ENABLED=0 go install -trimpath -ldflags="-w -s" github.com/sagernet/gomobile/cmd/[email protected] | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
|
||
- name: Build libv2ray | ||
if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true' | ||
|
@@ -114,13 +118,15 @@ jobs: | |
|
||
- name: Setup Android environment | ||
uses: android-actions/setup-android@v3 | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
|
||
- name: Build APK | ||
run: | | ||
cd ${{ github.workspace }}/V2rayNG | ||
chmod 755 gradlew | ||
./gradlew licenseFdroidReleaseReport | ||
./gradlew assembleDebug | ||
./gradlew assembleFdroidRelease | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
|
||
|
@@ -129,18 +135,18 @@ jobs: | |
if: ${{ success() }} | ||
with: | ||
name: arm64-v8a | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/debug/*arm64-v8a*.apk | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*arm64-v8a*.apk | ||
|
||
- name: Upload armeabi-v7a APK | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ success() }} | ||
with: | ||
name: armeabi-v7a | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/debug/*armeabi-v7a*.apk | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*armeabi-v7a*.apk | ||
|
||
- name: Upload x86 APK | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ success() }} | ||
with: | ||
name: x86-apk | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/debug/*x86*.apk | ||
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*x86*.apk |