mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-14 13:24:14 +08:00
Workflows: Build Android Using NDK
This commit is contained in:
parent
58c48664e2
commit
497da3a7bd
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -104,6 +104,21 @@ jobs:
|
|||||||
- name: Checkout codebase
|
- name: Checkout codebase
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up NDK
|
||||||
|
if: matrix.goos == 'android'
|
||||||
|
run: |
|
||||||
|
wget -qO android-ndk.zip https://dl.google.com/android/repository/android-ndk-r28b-linux.zip
|
||||||
|
unzip android-ndk.zip
|
||||||
|
rm android-ndk.zip
|
||||||
|
declare -A arches=(
|
||||||
|
["amd64"]="x86_64-linux-android24-clang"
|
||||||
|
["arm64"]="aarch64-linux-android24-clang"
|
||||||
|
["386"]="i686-linux-android24-clang"
|
||||||
|
["arm7"]="armv7a-linux-androideabi24-clang"
|
||||||
|
)
|
||||||
|
echo CC="$(realpath android-ndk-*/toolchains/llvm/prebuilt/linux-x86_64/bin)/${arches[${{ matrix.goarch }}]}" >> $GITHUB_ENV
|
||||||
|
echo CGO_ENABLED=1 >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Show workflow information
|
- name: Show workflow information
|
||||||
run: |
|
run: |
|
||||||
_NAME=${{ matrix.patch-assetname }}
|
_NAME=${{ matrix.patch-assetname }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user