diff --git a/.forgejo/workflows/build-release.yaml b/.forgejo/workflows/build-release.yaml index 1788b88..9c0c34b 100644 --- a/.forgejo/workflows/build-release.yaml +++ b/.forgejo/workflows/build-release.yaml @@ -59,9 +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 "$(printf '\\t')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 + 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 + cd tools + make CC=musl-gcc CYTO_INC=${PREFIX}/include CYTO_LIB=${PREFIX}/lib + cd .. make CC=musl-gcc CYTO_INC=${PREFIX}/include CYTO_LIB=${PREFIX}/lib 2> /dev/null || true musl-gcc -static -o "${PREFIX}/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