diff options
author | 1Conan <7620342+1Conan@users.noreply.github.com> | 2021-11-05 01:47:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 13:47:21 -0400 |
commit | c1662728c3a87abda8aa737a334539d4189ab18b (patch) | |
tree | d65949caaceb10ee97d2dff2ce75d07e56e56d4c /.github | |
parent | df1cc52eccb739c2561e6002b18dee0c48137f1a (diff) | |
download | ldid-c1662728c3a87abda8aa737a334539d4189ab18b.tar.gz ldid-c1662728c3a87abda8aa737a334539d4189ab18b.tar.zst ldid-c1662728c3a87abda8aa737a334539d4189ab18b.zip |
Cleanup and switch to a Makefile (#7)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37252dd..1fe67fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,9 +109,9 @@ jobs: - name: build run: | export LDID_VERSION=$(echo "$(git describe --tags --abbrev=0)") - ${CC} ${CFLAGS} -c -o lookup2.o lookup2.c - ${CXX} ${CFLAGS} -c -o ldid.o ldid.cpp -std=c++11 -DLDID_VERSION=\"${LDID_VERSION}\" - ${CXX} ${CFLAGS} -std=c++11 ldid.o lookup2.o ${LIBPLIST_LIB} ${LIBCRYPTO_LIB} -o ldid + make -j$(nproc) \ + VERSION="${LDID_VERSION}" \ + LIBS="${LIBPLIST_LIB} ${LIBCRYPTO_LIB}" ${TRIPLE}-strip ldid - uses: actions/upload-artifact@v1 @@ -207,9 +207,10 @@ jobs: - name: build run: | export LDID_VERSION=$(echo "$(git describe --tags --abbrev=0)") - ${CC} ${CFLAGS} -flto=thin -Os -c -o lookup2.o lookup2.c - ${CXX} ${CFLAGS} -flto=thin -Os -c -o ldid.o ldid.cpp -std=c++11 -DLDID_VERSION=\"${LDID_VERSION}\" - ${CXX} ${LIBPLIST_LIB} ${LIBCRYPTO_LIB} -flto=thin -Os -std=c++11 ldid.o lookup2.o -o ldid + make -j$(sysctl -n hw.ncpu) \ + CFLAGS="${CFLAGS} -flto=thin" \ + VERSION="${LDID_VERSION}" \ + LIBS="${LIBPLIST_LIB} ${LIBCRYPTO_LIB}" strip ldid - uses: actions/upload-artifact@v1 |