fix: Resolve Cargo lock file version compatibility issue

- Update Rust version from 1.75.0 to 1.80.0 for lock file compatibility
- Add step to remove Cargo.lock before building to ensure clean build
- Fix 'lock file version 4' error in GitHub Actions environment
- Ensure wasm-pack build works with current Cargo version
This commit is contained in:
Peter Hanssens
2025-09-23 19:41:32 +10:00
parent 04b6529405
commit a2a856f2ae

View File

@@ -18,7 +18,7 @@ on:
workflow_dispatch: # Allow manual triggering
env:
RUST_VERSION: '1.75.0'
RUST_VERSION: '1.80.0'
NODE_VERSION: '18'
WASM_PACK_VERSION: '0.12.1'
@@ -66,6 +66,8 @@ jobs:
- name: Build comprehensive demo
run: |
cd examples/comprehensive-demo
# Remove lock file to ensure compatibility
rm -f Cargo.lock
wasm-pack build --target web --out-dir pkg --release
- name: Start demo server