zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
866 stars 39 forks source link

[Request] Provide Binaries for Android #92

Open Azathothas opened 9 months ago

Azathothas commented 9 months ago

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"

But after compiling with abv step, image