Skip to content

Commit 0038d9b

Browse files
committed
tar clean clone
1 parent 3073293 commit 0038d9b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ jobs:
103103
run: |
104104
TAG=${{ needs.set_tag.outputs.tag }}
105105
TAR=projectm-$TAG-source.tar.gz
106-
# Exclude VCS metadata and the output archive itself to avoid "file changed as we read it" errors
107-
tar --warning=no-file-changed --exclude-vcs --exclude="$TAR" -czvf "$TAR" .
106+
# Create a clean clone (with submodules) for packaging
107+
git clone --depth 1 --recurse-submodules . source-pkg
108+
# Remove any VCS metadata in the clone
109+
find source-pkg -name .git -exec rm -rf {} +
110+
# Package the clean source tree
111+
tar -czvf "$TAR" -C source-pkg .
108112
- name: Upload artifact
109113
uses: actions/upload-artifact@v4
110114
with:

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ if(ENABLE_SYSTEM_GLM)
105105
endif()
106106

107107
if(ENABLE_SYSTEM_PROJECTM_EVAL)
108-
find_package(projectM-Eval)
108+
# Attempt to use an external projectm-eval library; fall back to vendored copy if not found
109+
find_package(projectM-Eval QUIET)
109110
endif()
110111

111112
if(NOT BUILD_SHARED_LIBS AND CMAKE_SYSTEM_NAME STREQUAL "Windows")

0 commit comments

Comments
 (0)