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