Skip to content

Commit 91c271f

Browse files
M09Icclaude
andcommitted
fix(ci): use UTILS_PUSH_TOKEN, build wasm from cstx-core internal crate
- Token: CSTX_TOKEN → UTILS_PUSH_TOKEN (already has libcstx access) - WASM: cstx-wasm crate now lives in cstx-core/crates/cstx-wasm, CI builds it from there via wasm-pack - Remove local wasm/ directory (source moved to cstx-core) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3489646 commit 91c271f

3 files changed

Lines changed: 8 additions & 192 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
repository: ${{ env.CSTX_REPO }}
3131
ref: ${{ github.event.inputs.cstx_ref || 'master' }}
3232
path: cstx-src
33-
token: ${{ secrets.CSTX_TOKEN }}
33+
token: ${{ secrets.UTILS_PUSH_TOKEN }}
3434

3535
- uses: dtolnay/rust-toolchain@stable
3636
with:
@@ -103,7 +103,7 @@ jobs:
103103
repository: ${{ env.CSTX_REPO }}
104104
ref: ${{ github.event.inputs.cstx_ref || 'master' }}
105105
path: cstx-src
106-
token: ${{ secrets.CSTX_TOKEN }}
106+
token: ${{ secrets.UTILS_PUSH_TOKEN }}
107107

108108
- uses: dtolnay/rust-toolchain@stable
109109
with:
@@ -117,20 +117,18 @@ jobs:
117117
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
118118

119119
- name: Build WASM
120-
working-directory: wasm
121-
env:
122-
CARGO_TARGET_DIR: ../cstx-src/cstx-core/target
120+
working-directory: cstx-src/cstx-core
123121
run: |
124-
wasm-pack build --target bundler --out-dir ../ts/wasm --release
122+
wasm-pack build crates/cstx-wasm --target bundler --out-dir ../../wasm-out --release
125123
126124
- uses: actions/upload-artifact@v4
127125
with:
128126
name: wasm-bundle
129127
path: |
130-
ts/wasm/*.wasm
131-
ts/wasm/*.js
132-
ts/wasm/*.d.ts
133-
ts/wasm/package.json
128+
cstx-src/cstx-core/wasm-out/*.wasm
129+
cstx-src/cstx-core/wasm-out/*.js
130+
cstx-src/cstx-core/wasm-out/*.d.ts
131+
cstx-src/cstx-core/wasm-out/package.json
134132
135133
publish:
136134
needs: [build-ffi, build-wasm]

‎wasm/Cargo.toml‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎wasm/src/lib.rs‎

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)