-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
8242682
commit 7fdb6c8
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |