Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/actions/native-engine-wasm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ runs:
sh "$GITHUB_WORKSPACE/scripts/retry-download.sh" "$GITHUB_WORKSPACE/.cache/emsdk/emsdk" install "$TN_EMSDK_VERSION"
fi
"$GITHUB_WORKSPACE/.cache/emsdk/emsdk" activate "$TN_EMSDK_VERSION"
# The web engine reads four pinned sources: stb (images), cgltf (glTF), libwebp and
# meshoptimizer (EXT/KHR_meshopt_compression in the same glTF loader).
for dependency in stb cgltf webp-source meshopt; do
# The web engine reads five pinned sources: stb (images), cgltf (glTF), libwebp,
# meshoptimizer (EXT/KHR_meshopt_compression in the same glTF loader) and Basis Universal
# (KHR_texture_basisu, PRD-861).
for dependency in stb cgltf webp-source meshopt basisu; do
node scripts/download-deps.mjs --only "$dependency"
done
source "$GITHUB_WORKSPACE/.cache/emsdk/emsdk_env.sh"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,9 @@ jobs:
set -euo pipefail
ccache --zero-stats
# The core reads the web engine's pinned sources too (stb decodes SMAANode's tables), and
# the glTF loader decodes meshopt-compressed models with the pinned meshoptimizer.
for dependency in stb cgltf webp-source meshopt; do
# the glTF loader decodes meshopt-compressed models with the pinned meshoptimizer and
# KTX2 textures with the pinned Basis Universal transcoder (PRD-861).
for dependency in stb cgltf webp-source meshopt basisu; do
node scripts/download-deps.mjs --only "$dependency"
done
cmake -S . -B build/native-engine -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTN_ENGINE_CORE_ONLY=ON
Expand Down
Loading