Skip to content

Commit 7fdb6c8

Browse files
authored
Auto deploy development build of WebChucK for IDE (#439)
* webchuck-deploy GHA test * fix github action for webchuck * mend * mend * Update webchuck-dev.yml * Update webchuck-dev.yml
1 parent 8242682 commit 7fdb6c8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/webchuck-dev.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: WebChucK IDE Development - Emscripten Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup and cache Emscripten
17+
uses: mymindstorm/setup-emsdk@v14
18+
with:
19+
# Make sure to set a version number!
20+
version: 3.1.57
21+
# This is the name of the cache folder.
22+
# The cache folder will be placed in the build directory,
23+
# so make sure it doesn't conflict with anything!
24+
actions-cache-folder: 'emsdk-cache'
25+
26+
- name: Compile - Web
27+
run: cd src/ && make -j web
28+
29+
- name: Copy files to server
30+
uses: appleboy/[email protected]
31+
with:
32+
host: ${{ secrets.HOST_WEBCHUCK }}
33+
username: ${{ secrets.HOST_USERNAME }}
34+
key: ${{ secrets.PRIVATEKEY_WEBCHUCK }}
35+
source: "src/host-web/webchuck/js/webchuck.js, src/host-web/webchuck/js/webchuck.wasm"
36+
target: ${{ secrets.PATH_WEBCHUCK_DEV }}
37+
strip_components: 4

0 commit comments

Comments
 (0)