Skip to content

Commit

Permalink
ci: again?
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko committed Nov 18, 2023
1 parent 0887f34 commit 71b5f5a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,28 @@ jobs:
# install node 14
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Build demo
run: |
./build-demo.sh
- name: GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: crazy-max/[email protected]
# deploy build/demo to gh-pages
- uses: peaceiris/actions-gh-pages@v3
with:
build_dir: build/demo/
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/demo
publish_branch: gh-pages
force_orphan: true

# - uses: actions/upload-artifact@v3
# with:
# name: dist
# path: |
# ./build/llvm/bin/llvm-box.wasm
# ./build/llvm/bin/llvm-box.mjs
# retention-days: 7
- name: Zip artifact for deployment
run: zip build.zip ./build/* -r

- uses: actions/upload-artifact@v3
with:
name: dist
path: ./build.zip
retention-days: 7


# release:
Expand Down
2 changes: 1 addition & 1 deletion build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if [ ! -d $CPYTHON_BUILD/ ]; then
--with-suffix=".mjs" \
--disable-wasm-preload \
--enable-wasm-js-module \
--with-build-python=$CPYTHON_NATIVE/python.exe \
--with-build-python=$CPYTHON_NATIVE/python \

emmake make -j$(nproc)

Expand Down
4 changes: 3 additions & 1 deletion build-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,6 @@ if [ ! -d $LLVM_BUILD/ ]; then
sed -E 's/ninja_required_version1\.5/ninja_required_version = 1.5/g' $LLVM_BUILD/build.ninja > /tmp/build.ninja
mv /tmp/build.ninja $LLVM_BUILD/build.ninja
fi
cmake --build $LLVM_BUILD/ -- llvm-box
# llvm is memory hungry, so only use 2 threads instead of the default 4
# todo: detect memory and use more threads if we have enough
cmake --build --parallel 2 $LLVM_BUILD/ -- llvm-box

0 comments on commit 71b5f5a

Please sign in to comment.