Commit Graph

26 Commits

Author SHA1 Message Date
Syoyo Fujita
d308b9204b Fix usdcat verification - use --help instead of --version
usdcat doesn't support --version flag. It requires input files and
exits with error "inputFiles is required" when run without arguments.

Changed all verification steps to use `usdcat --help` which properly
displays the help text and exits with success.
2026-01-11 00:13:27 +09:00
Syoyo Fujita
7b4d1b04fb Fix OpenUSD binary extraction and environment setup in CI workflows
The OpenUSD release archives extract files directly to the current
directory (./bin/, ./lib/, etc.) rather than creating a top-level
directory. This fixes extraction and environment setup for all platforms:

**Changes:**
1. Extract archives into a named 'openusd' directory
2. Manually set all required environment variables:
   - PATH: Add bin, lib (Windows), and tbb/bin directories
   - LD_LIBRARY_PATH/DYLD_LIBRARY_PATH: Add lib and tbb/lib directories
   - PYTHONPATH: Add lib/python directory
   - PXR_PLUGINPATH_NAME: Set to lib/usd

**Fixes:**
- Windows: usdcat not found in PATH (bin directory not added)
- macOS: libtbb.12.dylib not found (DYLD_LIBRARY_PATH missing tbb/lib)
- Linux: Ensure TBB libraries are in LD_LIBRARY_PATH

All platforms now properly configure the environment to use the bundled
TBB libraries included in the release packages.
2026-01-10 23:39:22 +09:00
Syoyo Fujita
60b617295e Add libtbb12 installation back for OpenUSD tests
Despite TBB being included in the OpenUSD binary package, the system
still requires libtbb12 to be installed for proper library resolution.
This ensures usdcat and other OpenUSD binaries can find libtbb.so.12.

Fixes failure in workflow run #20869757118.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 10:47:10 +09:00
Syoyo Fujita
e465c29d23 Remove TBB installation step from Linux CI
TBB library is now included in the OpenUSD binary package
(as of lighttransport/openusd-bin@4f2eda3), so separate
installation is no longer needed.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 09:37:33 +09:00
Syoyo Fujita
7fd278fa8d Fix OpenUSD binary download and dependency issues in Linux CI
- Fix ARM64 binary pattern: change aarch64 to arm64 to match actual release filename
- Add libtbb12 installation for x86_64 build to resolve missing libtbb.so.12 error

These changes fix the failures in workflow run #20866500999 where:
1. ARM64 build failed with "no assets match the file pattern"
2. x86_64 build failed with "error while loading shared libraries: libtbb.so.12"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 07:05:38 +09:00
Syoyo Fujita
606729bbc5 Add OpenUSD binary interoperability testing to CI workflows
Downloads prebuilt OpenUSD binaries from lighttransport/openusd-bin
and tests TinyUSDZ output compatibility with official OpenUSD tools.
Validates that TinyUSDZ-generated USDA files can be read by OpenUSD's
usdcat. Tests run on Linux (x64/ARM64), macOS ARM64, and Windows x64.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 06:45:56 +09:00
Syoyo Fujita
9372bf99af Remove gdb/lldb debugging from ARM64 CI now that segfault is fixed
Revert to running tusdcat directly without debuggers. The ARM64 pointer
sign-extension bug has been fixed in the previous commit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:56:38 +09:00
Syoyo Fujita
0eff85acd7 Run ARM64 tusdcat tests under gdb/lldb to catch segfault backtrace
- Build with Debug mode for better stack traces
- Install gdb for gcc build, lldb-21 for clang build
- Run tusdcat under debugger to capture backtrace on crash
- Clean up duplicate steps from earlier merge

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:19:28 +09:00
Syoyo Fujita
226e17facd Add ARM64 ASan build to debug segfaults in USDC timesamples parsing
Build with AddressSanitizer enabled on ARM64 runner to help identify
the root cause of segmentation faults in timesamples USDC file parsing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:08:12 +09:00
Syoyo Fujita
0cc7674660 Merge branch 'dev' of github.com:lighttransport/tinyusdz into dev 2026-01-08 11:55:33 +09:00
Syoyo Fujita
529ea06372 Add dedicated USDC timesamples tests and artifact upload to ARM64 CI
Add explicit tusdcat tests for USDC timesamples files that have shown
parsing issues on ARM64 runners. Also upload ARM64 tusdcat binaries as
artifacts for testing in other environments (e.g., QEMU).

Run order: artifact upload -> tusdcat tests -> ctest, so that artifacts
are available even if subsequent tests fail.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:53:47 +09:00
Syoyo Fujita
18192b3dfb Add dedicated USDC timesamples tests and artifact upload to ARM64 CI
Add explicit tusdcat tests for USDC timesamples files that have shown
parsing issues on ARM64 runners. Also upload ARM64 tusdcat binaries as
artifacts for testing in other environments (e.g., QEMU).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:38:12 +09:00
Syoyo Fujita
160aab95fb Update ARM64 CI to Ubuntu 24.04 and fix bootstrap script defaults
- Update ARM64 runners from ubuntu-22.04-arm to ubuntu-24.04-arm
- Update LLVM apt repository from jammy to noble for Ubuntu 24.04
- Remove clang default from bootstrap-cmake-linux.sh; now uses
  system default compiler unless CC/CXX are explicitly set

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:11:24 +09:00
Syoyo Fujita
9422931843 Add GCC build and update Clang to v21 for ARM64 Linux CI
- Split build-arm64 into build-arm64-gcc and build-arm64-clang
- build-arm64-gcc: Uses system GCC on Ubuntu 22.04 ARM
- build-arm64-clang: Installs Clang 21 from LLVM apt repository
  (previously used system Clang 14 which is outdated)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 08:57:30 +09:00
Syoyo Fujita
7976bf119c lscpu to show arm model 2025-02-24 02:28:34 +09:00
Syoyo Fujita
06c7cc86cc show arm64 cpuinfo 2025-02-24 02:18:01 +09:00
Syoyo Fujita
f04199c00d Use native arm64 linux runner. 2025-02-22 22:29:47 +09:00
Syoyo Fujita
5319fb85a2 Use clang by default for linux build.
(to increase compiler warnings)
2024-01-03 02:21:13 +09:00
Syoyo Fujita
42c1ad8c14 Enable TIFF and EXR build on CI + Arm build. 2023-03-29 18:41:35 +09:00
Syoyo Fujita
530461c88f Run ctest on Windows CI build
Report number of files processed in USDA/USDC parser tests.
[USDC parser] Fix error message.
2023-01-21 01:44:37 +09:00
Syoyo Fujita
88c7fa8672 Verbose print for ctest debugging. 2023-01-20 22:50:11 +09:00
Syoyo Fujita
4f5ecd1d14 cd to build dir was missing. 2023-01-20 22:19:54 +09:00
Syoyo Fujita
7787842343 Enable unit test(using ctest) on Github Actions CI(Linux and macOS only at the moment).
Fix USDA parser and USDC parser unit runner.
2023-01-20 22:06:03 +09:00
Syoyo Fujita
85ae873dba Disable gcc4.9 and gcc5 build.
Use version-less gcc-aarch64
2022-11-23 21:53:58 +09:00
Syoyo Fujita
f854f58648 Shorten Build name
Add Windows ARM32 cross-compile CI.
2022-11-01 02:04:31 +09:00
Syoyo Fujita
0d8cb6dad6 Separate GitHub Actions C/C++ CI build to several workflow files. 2022-11-01 00:52:00 +09:00