fix(ci): exclude godot-cpp and libtsm from cache

The godot-cpp and libtsm dependecies are built via the SConstruct file
and therefore can be handled by the SCons cache. By caching the
seperately, changes to the submodules were being overwritten.
This commit is contained in:
Leroy Hopson 2024-03-03 20:56:19 +13:00
parent fa28b7d6c2
commit 8255d8b3ce
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -17,11 +17,10 @@ runs:
working-directory: addons/godot_xterm/native/thirdparty
shell: bash
run: |
godot_cpp_rev=$(git ls-tree HEAD godot-cpp --object-only)
libuv_rev=$(git ls-tree HEAD libuv --object-only)
libtsm_rev=$(git ls-tree HEAD libtsm --object-only)
node_pty_rev=$(git ls-tree HEAD node-pty --object-only)
hash_cmd=$([[ $RUNNER_OS == 'Windows' ]] && echo 'sha1sum' || echo 'shasum')
hash_of_hashes=$(echo -n "$godot_cpp_rev$libuv_rev$libtsm_rev" | $hash_cmd | head -c 40)
hash_of_hashes=$(echo -n "$libuv_rev$node_pty_rev" | $hash_cmd | head -c 40)
echo "hash=$hash_of_hashes" >> $GITHUB_OUTPUT
build_files_hash=${{ hashFiles('**/build.sh', '**/*.Dockerfile', '**/SConstruct', '**/*.yml') }}
echo "build-files-hash=$build_files_hash" >> $GITHUB_OUTPUT