pmt: try fix workflow, The script was explained
This commit is contained in:
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@@ -75,28 +75,20 @@ jobs:
|
|||||||
- name: Last small transactions
|
- name: Last small transactions
|
||||||
id: small-transactions
|
id: small-transactions
|
||||||
run: |
|
run: |
|
||||||
export CXX_64="${PWD}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++"
|
curdate="$(date +%Y%m%d)"
|
||||||
export CXX_32="${PWD}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++"
|
. build/workflow/build.config
|
||||||
export AR="${PWD}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
|
. build/workflow/relnotes > /home/pmt/release_body.txt
|
||||||
export CXX_VERSION=$(${CXX_64} --version | head -n 1)
|
|
||||||
echo "CXX_VERSION=${CXX_VERSION}" >> $GITHUB_ENV
|
|
||||||
. ${{ env.PMT_SRCDIR }}/build/workflow/build.config
|
|
||||||
. ${{ env.PMT_SRCDIR }}/build/workflow/relnotes > /home/pmt/release_body.txt
|
|
||||||
cd ${{ env.PMT_SRCDIR }}
|
|
||||||
zip -rq pmt-objs-local.zip obj/local/arm64-v8a obj/local/armeabi-v7a
|
zip -rq pmt-objs-local.zip obj/local/arm64-v8a obj/local/armeabi-v7a
|
||||||
for arch in arm64-v8a armeabi-v7a; do
|
for arch in arm64-v8a armeabi-v7a; do
|
||||||
xz libs/${arch}/pmt
|
mkdir -p out/binary
|
||||||
mv libs/${arch}/pmt.xz ${PWD}/pmt-${arch}-$(date +%Y%m%d).xz
|
mv ${{ env.NDK_DIR }}/libs/${arch}/pmt out/binary
|
||||||
done
|
[[ "${arch}" == "arm64-v8a" ]] && make deb FOR_THIS=64
|
||||||
for CXX_COMP in ${CXX_64} ${CXX_32}; do
|
[[ "${arch}" == "armeabi-v7a" ]] && make deb FOR_THIS=32
|
||||||
make clean
|
|
||||||
make PMT_CXX="${CXX_COMP}" PMT_AR="${AR}" PMT_EXTRA_CFLAGS="-D__NDK_BUILD"
|
|
||||||
[[ "${CXX_COMP}" == *"aarch64"* ]] && make deb FOR_THIS=64
|
|
||||||
[[ "${CXX_COMP}" == *"armv7a"* ]] && make deb FOR_THIS=32
|
|
||||||
mv out/debpackage/*.deb .
|
mv out/debpackage/*.deb .
|
||||||
make clean
|
xz out/binary/pmt
|
||||||
|
mv out/binary/pmt.xz ${PWD}/pmt-${arch}-${curdate}.xz
|
||||||
done
|
done
|
||||||
working-directory: ${{ env.NDK_DIR }}
|
working-directory: ${{ env.PMT_SRCDIR }}
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
id: upload-to-rels
|
id: upload-to-rels
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -123,6 +123,16 @@ make uninstall
|
|||||||
|
|
||||||
# Re-install (install & uninstall)
|
# Re-install (install & uninstall)
|
||||||
make reinstall
|
make reinstall
|
||||||
|
|
||||||
|
# Manage pmt with termux script
|
||||||
|
## Download script
|
||||||
|
curl -LSs https://github.com/ShawkTeam/pmt/raw/2.8.0/pmt-termux.sh > pmt-termux.sh
|
||||||
|
|
||||||
|
## View script help
|
||||||
|
bash pmt-termux.sh # --help (optional)
|
||||||
|
|
||||||
|
## The commands will be told to you anyway. Ask your questions from the telegram group.
|
||||||
|
|
||||||
```
|
```
|
||||||
- For the make installable debian package:
|
- For the make installable debian package:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user