Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Provide Binaries for Android #92

Open
Azathothas opened this issue Nov 11, 2023 · 0 comments
Open

[Request] Provide Binaries for Android #92

Azathothas opened this issue Nov 11, 2023 · 0 comments

Comments

@Azathothas
Copy link

An example action.yaml

      - name: Build eget for arm64-v8a (Native)
        run: |
          #Presets
          set -x ; set +e
          #--------------#
          #Get Source
          pushd $(mktemp -d) && git clone "https://github.com/zyedidia/eget" && cd eget
          # android 29 --> Android 10.0 or Later
          # ANDROID_NDK = /usr/local/lib/android/sdk/ndk/
          export CC="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang"
          export CXX="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++"
          #Compile
          # CGO_ENABLED must be enabled to use android native libs, else things like dns etc won't work
          # Binaries compiled this way are always dynamically linked to /system/bin/linker64
          GOOS=android GOARCH=arm64 CGO_ENABLED=1 go build -v -ldflags="-s -w"
          #meta 
          file "./eget"
  • Why ?

Using eget-xxx-linux_arm64.tar.gz
image

But after compiling with abv step,
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant