Skip to content

Commit d39ce20

Browse files
fix(ci): generate schema.gql before deno snapshot build
rust-client/schema.gql is a symlink to core/lib/src/schema.gql which is generated (not committed to git). Without building it first, cargo fails to compile rust-client with 'function X is not a crate or module' errors because graphql-client cannot read the schema at compile time. Run 'tsx src/buildSchema.ts' in the core package before the cargo build.
1 parent 6ebf78e commit d39ce20

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish_staging.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
- name: pnpm Install
8080
run: pnpm install --no-frozen-lockfile
8181

82+
- name: Generate schema.gql (required for rust-client compilation)
83+
# rust-client/schema.gql is a symlink to core/lib/src/schema.gql which is
84+
# generated (not in git). We must build it before cargo compiles rust-client.
85+
run: cd core && pnpm exec tsx src/buildSchema.ts
86+
8287
- name: Generate deno snapshot
8388
env:
8489
CARGO_NET_GIT_FETCH_WITH_CLI: "true"

0 commit comments

Comments
 (0)