Skip to content

fix(ci): unbreak linux package build and stabilize ios bridge snapshot#59

Merged
bugra9 merged 1 commit intomainfrom
fix/ci/build-2
May 3, 2026
Merged

fix(ci): unbreak linux package build and stabilize ios bridge snapshot#59
bugra9 merged 1 commit intomainfrom
fix/ci/build-2

Conversation

@bugra9
Copy link
Copy Markdown
Owner

@bugra9 bugra9 commented May 3, 2026

  • bin.js: guard the dist.cmake write with existsSync(prebuilt). On non-darwin runners createLib + createXCFramework early-return for ios targets, so <output>/prebuilt/ never exists; the template write was crashing with ENOENT and failing cppjs build -p ios on linux CI. When prebuilt artifacts are absent the template is meaningless, so silently skip.

  • ci snapshot: rename cppjs-sample-mobile-reactnative-cli/ci/.cppjs/... -> cppjs-sample-mobile-reactnative-cli/ci/cppjs-snapshot/... so that pnpm clear:cache:samples (and any future variant matching **/.cppjs) cannot accidentally wipe the bridge fixtures used by the iOS test workflow. Restore the four files that were lost in the previous deletion.

  • test-ios-sample.yml: copy snapshot contents into the sample's .cppjs/ using mkdir -p + trailing /. so the restore never nests cppjs-snapshot/ inside .cppjs/ regardless of pre-existing state.

- bin.js: guard the dist.cmake write with `existsSync(prebuilt)`. On
  non-darwin runners createLib + createXCFramework early-return for ios
  targets, so `<output>/prebuilt/` never exists; the template write was
  crashing with ENOENT and failing `cppjs build -p ios` on linux CI.
  When prebuilt artifacts are absent the template is meaningless, so
  silently skip.

- ci snapshot: rename
    cppjs-sample-mobile-reactnative-cli/ci/.cppjs/...
  ->
    cppjs-sample-mobile-reactnative-cli/ci/cppjs-snapshot/...
  so that pnpm clear:cache:samples (and any future variant matching
  `**/.cppjs`) cannot accidentally wipe the bridge fixtures used by the
  iOS test workflow. Restore the four files that were lost in the
  previous deletion.

- test-ios-sample.yml: copy snapshot contents into the sample's `.cppjs/`
  using `mkdir -p` + trailing `/.` so the restore never nests
  `cppjs-snapshot/` inside `.cppjs/` regardless of pre-existing state.
@bugra9 bugra9 force-pushed the fix/ci/build-2 branch from f40beb4 to 515f043 Compare May 3, 2026 12:10
@bugra9 bugra9 merged commit 9df7b8a into main May 3, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant