Skip to content

Commit b82c068

Browse files
AlexMikhalevclaude
andcommitted
fix(ci): fix release workflow - wasm path, frontend build, feature flags
- Fix NPM publish: use crates/terraphim_automata/wasm-test directory for wasm-pack (wasm-test has crate-type = cdylib, terraphim_automata does not) - Add frontend build before tests: terraphim_server uses rust-embed for desktop/dist - Remove invalid feature flags from cross builds: memory/dashmap features are in terraphim_persistence, not terraphim_agent Generated with Terraphim AI Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2c04c05 commit b82c068

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ jobs:
121121
target
122122
key: release-test-${{ hashFiles('**/Cargo.lock') }}
123123

124+
- name: Setup Node.js
125+
uses: actions/setup-node@v4
126+
with:
127+
node-version: '20'
128+
129+
- name: Build frontend assets
130+
working-directory: ./desktop
131+
run: |
132+
yarn install --frozen-lockfile
133+
yarn build
134+
124135
- name: Run tests
125136
run: |
126137
# Run tests for core packages only (avoid Tauri desktop)
@@ -208,8 +219,8 @@ jobs:
208219
if: "!matrix.use_cross"
209220
working-directory: ./desktop
210221
run: |
211-
npm ci
212-
npm run build
222+
yarn install --frozen-lockfile
223+
yarn build
213224
214225
- name: Build server binary (native)
215226
if: "!matrix.use_cross"
@@ -220,16 +231,13 @@ jobs:
220231
221232
- name: Build TUI/CLI binary
222233
run: |
223-
# Cross builds need --no-default-features to avoid sqlite (rusqlite requires C compilation)
224234
${{ matrix.use_cross && 'cross' || 'cargo' }} build --release \
225-
--target ${{ matrix.target }} -p terraphim_agent --bin terraphim-agent \
226-
${{ matrix.use_cross && '--no-default-features --features memory,dashmap' || '' }}
235+
--target ${{ matrix.target }} -p terraphim_agent --bin terraphim-agent
227236
228237
- name: Build CLI binary
229238
run: |
230239
${{ matrix.use_cross && 'cross' || 'cargo' }} build --release \
231-
--target ${{ matrix.target }} -p terraphim-cli --bin terraphim-cli \
232-
${{ matrix.use_cross && '--no-default-features --features memory,dashmap' || '' }}
240+
--target ${{ matrix.target }} -p terraphim-cli --bin terraphim-cli
233241
234242
- name: Create archive
235243
run: |
@@ -326,9 +334,9 @@ jobs:
326334
run: npm install -g @napi-rs/cli
327335

328336
- name: Build WASM package
329-
working-directory: crates/terraphim_automata
337+
working-directory: crates/terraphim_automata/wasm-test
330338
run: |
331-
wasm-pack build --target web --release --out-dir ../../terraphim_ai_nodejs/pkg
339+
wasm-pack build --target web --release --out-dir ../../../terraphim_ai_nodejs/pkg
332340
333341
- name: Prepare npm package
334342
working-directory: terraphim_ai_nodejs

0 commit comments

Comments
 (0)