mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-31 12:30:35 +05:00
github: run termux-elf-cleaner
This commit is contained in:
parent
33d3059dc8
commit
628f629c49
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -327,11 +327,12 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
ABI: ${{ matrix.abi }}
|
ABI: ${{ matrix.abi }}
|
||||||
|
API: 21
|
||||||
TARGET: ${{ matrix.target }}
|
TARGET: ${{ matrix.target }}
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
DEPS_DIR=$GITHUB_WORKSPACE/deps
|
DEPS_DIR=$GITHUB_WORKSPACE/deps
|
||||||
export TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64
|
export TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64
|
||||||
export API=21
|
|
||||||
export CC="$TOOLCHAIN/bin/clang --target=$TARGET$API"
|
export CC="$TOOLCHAIN/bin/clang --target=$TARGET$API"
|
||||||
export AR=$TOOLCHAIN/bin/llvm-ar
|
export AR=$TOOLCHAIN/bin/llvm-ar
|
||||||
export AS=$CC
|
export AS=$CC
|
||||||
@ -360,6 +361,12 @@ jobs:
|
|||||||
CFLAGS="-DZAPRET_GH_VER=${{ github.ref_name }} -DZAPRET_GH_HASH=${{ github.sha }} -I$DEPS_DIR/include" \
|
CFLAGS="-DZAPRET_GH_VER=${{ github.ref_name }} -DZAPRET_GH_HASH=${{ github.sha }} -I$DEPS_DIR/include" \
|
||||||
LDFLAGS="-L$DEPS_DIR/lib" \
|
LDFLAGS="-L$DEPS_DIR/lib" \
|
||||||
make -C zapret android -j$(nproc)
|
make -C zapret android -j$(nproc)
|
||||||
|
|
||||||
|
# strip unwanted ELF sections to prevent warnings on old Android versions
|
||||||
|
gh api repos/termux/termux-elf-cleaner/releases/latest --jq '.tag_name' |\
|
||||||
|
xargs -I{} wget -O elf-cleaner https://github.com/termux/termux-elf-cleaner/releases/download/{}/termux-elf-cleaner
|
||||||
|
chmod +x elf-cleaner
|
||||||
|
./elf-cleaner --api-level $API zapret/binaries/my/*
|
||||||
zip zapret-android-$ABI.zip -j zapret/binaries/my/*
|
zip zapret-android-$ABI.zip -j zapret/binaries/my/*
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user