Skip to content

Commit d0cc33c

Browse files
committed
Fix deployment workflow and add clangd build
Changes to build workflow: - Build both clang and clangd WASM (clang-tools-extra enabled) - Include clangd files in release for LSP features Changes to deploy workflow: - Download WASM to /tmp first to avoid git checkout conflicts - Copy WASM files after checking out gh-pages branch - Fixes error: 'Your local changes would be overwritten by checkout'
1 parent 787d3ce commit d0cc33c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/deploy-playground.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ jobs:
3131
exit 1
3232
fi
3333
34-
# Download the WASM files into playground directory
35-
cd nullsafe-playground
34+
# Download the WASM files to a temp directory
35+
mkdir -p /tmp/wasm-files
36+
cd /tmp/wasm-files
3637
curl -L -o clang.wasm "https://github.com/${{ github.repository }}/releases/download/${LATEST_RELEASE}/clang-nullsafe.wasm"
3738
curl -L -o clang.js "https://github.com/${{ github.repository }}/releases/download/${LATEST_RELEASE}/clang-nullsafe.js"
3839
curl -L -o clangd.wasm "https://github.com/${{ github.repository }}/releases/download/${LATEST_RELEASE}/clangd-nullsafe.wasm"
3940
curl -L -o clangd.js "https://github.com/${{ github.repository }}/releases/download/${LATEST_RELEASE}/clangd-nullsafe.js"
4041
4142
echo "Downloaded files:"
42-
ls -lh clang.wasm clang.js clangd.wasm clangd.js
43+
ls -lh
4344
4445
- name: Deploy to gh-pages
4546
run: |
@@ -59,11 +60,14 @@ jobs:
5960
# Clear everything
6061
git rm -rf . 2>/dev/null || true
6162
62-
# Copy playground files
63+
# Copy playground files from the original branch
6364
git checkout null-safe-c-dev -- nullsafe-playground
6465
mv nullsafe-playground/* .
6566
rm -rf nullsafe-playground
6667
68+
# Copy the downloaded WASM files
69+
cp /tmp/wasm-files/* .
70+
6771
# Disable Jekyll processing
6872
touch .nojekyll
6973

0 commit comments

Comments
 (0)