forked from CovenantSQL/CovenantSQL
-
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.
Merge pull request CovenantSQL#328 from CovenantSQL/feature/android_c…
…ross_compile Support android arm64 system compatible ELF binary release
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Stage: builder | ||
FROM karalabe/xgo-latest | ||
|
||
RUN $ANDROID_NDK_ROOT/build/tools/make-standalone-toolchain.sh --ndk-dir=$ANDROID_NDK_ROOT --install-dir=/usr/$ANDROID_CHAIN_ARM64 --toolchain=$ANDROID_CHAIN_ARM64 --arch=arm64 | ||
WORKDIR /go/src/github.com/CovenantSQL/CovenantSQL | ||
COPY . . | ||
RUN make clean | ||
RUN GOOS=android GOARCH=arm64 CC=aarch64-linux-android-gcc make release | ||
RUN tar cvfz /CovenantSQL.tar.gz bin/cql* |