diff --git a/.forgejo/workflows/build-release.yaml b/.forgejo/workflows/build-release.yaml index c9617d7..35ff447 100644 --- a/.forgejo/workflows/build-release.yaml +++ b/.forgejo/workflows/build-release.yaml @@ -10,7 +10,7 @@ jobs: run: | echo $(uname -a) $(env | grep container) apt update -y - apt install -y build-essential liblmdb-dev nodejs libssl-dev git + apt install -y build-essential liblmdb-dev nodejs libssl-dev git wget - name: Clone everything run: | mkdir -p repos @@ -54,3 +54,15 @@ jobs: ./configure --cc=musl-gcc --prefix=${PREFIX} --with-lmdb make -j$(nproc) make install + - name: Clone Parsee + uses: actions/checkout@v3 + - name: Build Parsee + run: | + alias musl-gcc="musl-gcc -Wl,-Bstatic -L ${PREFIX}/lib" + echo "all: adminify aya b64 config noavatars" > tools/Makefile + echo "%: %.c" >> tools/Makefile + echo "$(printf '\\t')musl-gcc -I $(PREFIX)/usr/include -static -o $(PREFIX)/$@.$(shell uname -m) $< -lm -lpthread -lssl -lCytoplasm -lssl -lcrypto -llmdb -flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections -lCytoplasm" >> tools/Makefile + 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 +