Update deploy wasm workflow
Change "builder" to non-local act runner.
This commit is contained in:
parent
c38243f2ba
commit
8b1a581498
1 changed files with 22 additions and 4 deletions
|
@ -9,11 +9,29 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
Build-And-Deploy-main:
|
Build-And-Deploy-main:
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
runs-on: archLinux
|
runs-on: remote_self
|
||||||
steps:
|
steps:
|
||||||
- run: cd && ./build_and_deploy_jumpartifact.com_demo_0.sh
|
- run: git clone https://git.seodisparate.com/stephenseo/jumpartifact.com_demo_0.git demo_0 && cd demo_0 && git checkout main
|
||||||
|
- run: test -d ${HOME}/emsdk || git clone https://github.com/emscripten-core/emsdk.git ${HOME}/emsdk
|
||||||
|
- run: cd ${HOME}/emsdk && git pull && ./emsdk install "$(cat ../demo_0/emsdk_version)" && ./emsdk activate "$(cat ../demo_0/emsdk_version)"
|
||||||
|
- run: sed -i -e '/\sclang-format/s|clang|#&|' demo_0/wasm_build/Makefile
|
||||||
|
- run: sed -i -e "/^EMSDK_ENV_SH/s|^.*$|EMSDK_ENV_SH = ${HOME}/emsdk/emsdk_env.sh|" demo_0/wasm_build/Makefile
|
||||||
|
- run: /usr/bin/env RELEASE=1 make -C demo_0/wasm_build
|
||||||
|
- run: install -m555 -D -T demo_0/wasm_build/jumpartifact.com_demo_0.html demo_0_out/index.html
|
||||||
|
- run: install -m555 -D -t demo_0_out demo_0/wasm_build/jumpartifact.com_demo_0.js demo_0/wasm_build/jumpartifact.com_demo_0.wasm demo_0/wasm_build/jumpartifact.com_demo_0.data
|
||||||
|
- name: Deploy demo
|
||||||
|
run: umask 077 && echo "${DEPLOY_JA_DEMO_KEY}" | base64 -d - > ja_demo_key && rsync --rsh="ssh -i ja_demo_key" -rt --delete demo_0_out/ deploy_user@seodisparate.com:/srv/http/jumpartifact.com/demo0/
|
||||||
Build-And-Deploy-devel:
|
Build-And-Deploy-devel:
|
||||||
if: github.ref_name == 'devel'
|
if: github.ref_name == 'devel'
|
||||||
runs-on: archLinux
|
runs-on: remote_self
|
||||||
steps:
|
steps:
|
||||||
- run: cd && ./build_and_deploy_jumpartifact.com_demo_0_devel.sh
|
- run: git clone https://git.seodisparate.com/stephenseo/jumpartifact.com_demo_0.git demo_0 && cd demo_0 && git checkout devel
|
||||||
|
- run: test -d ${HOME}/emsdk || git clone https://github.com/emscripten-core/emsdk.git ${HOME}/emsdk
|
||||||
|
- run: cd ${HOME}/emsdk && git pull && ./emsdk install "$(cat ../demo_0/emsdk_version)" && ./emsdk activate "$(cat ../demo_0/emsdk_version)"
|
||||||
|
- run: sed -i -e '/\sclang-format/s|clang|#&|' demo_0/wasm_build/Makefile
|
||||||
|
- run: sed -i -e "/^EMSDK_ENV_SH/s|^.*$|EMSDK_ENV_SH = ${HOME}/emsdk/emsdk_env.sh|" demo_0/wasm_build/Makefile
|
||||||
|
- run: /usr/bin/env RELEASE=1 make -C demo_0/wasm_build
|
||||||
|
- run: install -m555 -D -T demo_0/wasm_build/jumpartifact.com_demo_0.html demo_0_out/index.html
|
||||||
|
- run: install -m555 -D -t demo_0_out demo_0/wasm_build/jumpartifact.com_demo_0.js demo_0/wasm_build/jumpartifact.com_demo_0.wasm demo_0/wasm_build/jumpartifact.com_demo_0.data
|
||||||
|
- name: Deploy demo
|
||||||
|
run: umask 077 && echo "${DEPLOY_JA_DEMO_KEY}" | base64 -d - > ja_demo_key && rsync --rsh="ssh -i ja_demo_key" -rt --delete demo_0_out/ deploy_user@seodisparate.com:/srv/http/jumpartifact.com/demo0_devel/
|
||||||
|
|
Loading…
Reference in a new issue