Skip to content

Commit

Permalink
also set NDK_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
UjuiUjuMandan committed Dec 23, 2024
1 parent f447d10 commit 4e8eb23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
cache: false
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Install gomobile
if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true'
Expand All @@ -88,6 +89,7 @@ jobs:
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build libv2ray
if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true'
Expand All @@ -100,6 +102,7 @@ jobs:
gomobile bind -trimpath -buildvcs=false -v -androidapi 21 -ldflags='-s -w -buildid=' ./
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Save libv2ray
if: steps.cache-libv2ray-restore.outputs.cache-hit != 'true'
Expand All @@ -122,6 +125,7 @@ jobs:
uses: android-actions/setup-android@v3
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build APK
run: |
Expand All @@ -131,6 +135,7 @@ jobs:
./gradlew assembleFdroidRelease
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Upload arm64-v8a APK
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 4e8eb23

Please sign in to comment.