feat(app): polish repository workflows and graph
This commit is contained in:
@@ -38,11 +38,22 @@ jobs:
|
||||
run: |
|
||||
cmake -S . -B build-win -G Ninja \
|
||||
-DCMAKE_TOOLCHAIN_FILE=mingw-toolchain.cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++"
|
||||
|
||||
- name: Build Windows executable
|
||||
run: cmake --build build-win --parallel
|
||||
|
||||
- name: Verify static runtime linkage
|
||||
run: |
|
||||
dependencies="$(x86_64-w64-mingw32-objdump -p build-win/bin/gitree.exe | sed -n 's/.*DLL Name: //p')"
|
||||
printf '%s\n' "$dependencies"
|
||||
if printf '%s\n' "$dependencies" | grep -Eqi 'lib(gcc|stdc\+\+|winpthread).*\.dll'; then
|
||||
echo "The executable still depends on a MinGW runtime DLL."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Prepare artifact
|
||||
run: |
|
||||
mkdir -p dist
|
||||
|
||||
Reference in New Issue
Block a user