Skip to content

Commit 5c49920

Browse files
committed
add js build script
1 parent d0a7138 commit 5c49920

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ jobs:
2020
with:
2121
toolchain: Clang
2222

23+
- name: Setup JS
24+
uses: ./.github/actions/setup-js
25+
2326
- name: Build
2427
run: |
2528
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja
2629
cmake --build build --config Release
2730
mkdir -p dist/linux
2831
cp build/libyogacore.so dist/linux/libyoga.so
2932
33+
rm -rf build
34+
cmake -B build -S javascript -D CMAKE_BUILD_TYPE=Release -G Ninja
35+
cmake --build build --config Release
36+
mkdir -p dist/webgl
37+
cp -a build/ dist/webgl/
38+
3039
- name: Upload Binaries
3140
uses: actions/upload-artifact@v3
3241
if: github.event_name == 'push'

0 commit comments

Comments
 (0)