Skip to content

Commit 742db63

Browse files
committed
fix(ci): manually download js wrappers and csharp zip, force support config
1 parent 6524a64 commit 742db63

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/deploy-cdd-web-ui.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ jobs:
6767
wasm-opt -O3 "$wasm_file" -o "./optimized-wasm/$filename" || cp "$wasm_file" "./optimized-wasm/$filename"
6868
done
6969
70+
# Download JS Wrappers and C# Zip manually since fetch_wasm.sh skips them
71+
curl -sL -o ./optimized-wasm/cdd-ts.js "https://github.com/offscale/cdd-ts/releases/latest/download/cdd-ts.js" || true
72+
curl -sL -o ./optimized-wasm/cdd-java.js "https://github.com/SamuelMarks/cdd-java/releases/latest/download/cdd-java.js" || true
73+
curl -sL -o ./cdd-csharp-wasm.zip "https://github.com/SamuelMarks/cdd-csharp/releases/latest/download/cdd-csharp-wasm.zip" || true
74+
75+
# Force python-all, java, and ts to true in the generated JSON since they are now present
76+
sed -i 's/"python-all": false/"python-all": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
77+
sed -i 's/"java": false/"java": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
78+
sed -i 's/"ts": false/"ts": true/g' cdd-ctl-wasm-sdk/assets/wasm-support.json || true
79+
7080
- name: Build cdd-docs-ui
7181
working-directory: ./cdd-docs-ui
7282
run: |
@@ -79,8 +89,10 @@ jobs:
7989

8090
- name: Copy WASM Binaries to Web UI
8191
run: |
82-
mkdir -p cdd-web-ui/public/assets/wasm
92+
mkdir -p cdd-web-ui/public/assets/wasm/cdd-csharp
8393
cp cdd-ctl/optimized-wasm/*.wasm cdd-web-ui/public/assets/wasm/ || true
94+
cp cdd-ctl/optimized-wasm/*.js cdd-web-ui/public/assets/wasm/ || true
95+
unzip -q cdd-ctl/cdd-csharp-wasm.zip -d cdd-web-ui/public/assets/wasm/cdd-csharp/ || true
8496
cp cdd-ctl/cdd-ctl-wasm-sdk/assets/wasm-support.json cdd-web-ui/public/assets/wasm-support.json || true
8597
8698
- name: Compute base-href and Build Angular App

0 commit comments

Comments
 (0)