mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:15:10 +00:00
[MOD/CI/BUILD] Static builds, via the native tools
This commit is contained in:
parent
a110b44ad6
commit
92d33fa641
3 changed files with 50 additions and 26 deletions
|
|
@ -59,26 +59,13 @@ jobs:
|
|||
git clone https://git.kappach.at/${{ github.repository}} parsee
|
||||
cd parsee
|
||||
alias musl-gcc="musl-gcc -Wl,-Bstatic -L ${PREFIX}/lib"
|
||||
export TAB=$(printf '\t')
|
||||
echo "all: adminify aya b64 config noavatars" > tools/Makefile
|
||||
echo "%: %.c" >> tools/Makefile
|
||||
echo "${TAB}musl-gcc -I ../usr/include -static -o ../\$@.\$(shell uname -m) $< -lm -lpthread -lssl -lCytoplasm -lssl -lcrypto -llmdb -flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections -lCytoplasm" >> tools/Makefile
|
||||
cat tools/Makefile
|
||||
cd tools
|
||||
make
|
||||
cd ..
|
||||
make CC=musl-gcc CYTO_INC=${PREFIX}/include CYTO_LIB=${PREFIX}/lib 2> /dev/null || true
|
||||
musl-gcc -static -o "parsee.$(uname -m)" $(find build/ -name '*.o') -lm -lpthread -lssl -lCytoplasm -lssl -lcrypto -llmdb -flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections -lCytoplasm
|
||||
ls $PREFIX
|
||||
./configure -s -i
|
||||
make CC=musl-gcc CYTO_INC=${PREFIX}/include CYTO_LIB=${PREFIX}/lib
|
||||
make PREFIX=bins
|
||||
ls bins
|
||||
- name: Create a final archive
|
||||
run: |
|
||||
cd parsee
|
||||
mkdir bins
|
||||
ls "${PREFIX}"
|
||||
ls .
|
||||
cp $(find . -maxdepth 1 -name "*.$(uname -m)") bins
|
||||
tar -czvf "$(uname)-$(uname -m).tar.gz" bins
|
||||
cp "$(uname)-$(uname -m).tar.gz" ..
|
||||
echo "NAM=parsee-$(uname)-$(uname -m)" >> $GITHUB_ENV
|
||||
echo "DIR=$PWD/bins" >> $GITHUB_ENV
|
||||
- name: Upload it all(as a ZIP of a .TGZ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue