Webclient action

This commit is contained in:
UnknownShadow200 2024-05-02 22:23:34 +10:00
parent 7af80a9223
commit 1ee4c58fdd
2 changed files with 39 additions and 1 deletions

39
.github/workflows/build_webclient.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Build latest (Webclient2)
on: [push]
concurrency:
group: ${{ github.ref }}-webclient2
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: trzeci/emscripten-fastcomp:1.39.0
steps:
- uses: actions/checkout@v4
- name: Compiles webclient
id: compile
run: |
cd src
emcc *.c -o ClassiCube.js -s WASM=0 -s NO_EXIT_RUNTIME=1 -s LEGACY_VM_SUPPORT=1 -s ALLOW_MEMORY_GROWTH=1 -s ABORTING_MALLOC=0 -s ENVIRONMENT=web -s TOTAL_STACK=256Kb --js-library interop_web.js -Os -g2 -s SINGLE_FILE
sed -i 's#eventHandler.useCapture);#{ useCapture: eventHandler.useCapture, passive: false });#g' ClassiCube.js
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Webclient'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'src/ClassiCube.js'
DEST_NAME: 'ClassiCube.js'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
WORKFLOW_NAME: 'webclient'

View File

@ -209,7 +209,6 @@ static void VirtualKeyboard_ProcessDown(void* obj, int key, cc_bool was) {
VirtualKeyboard_AppendChar(' ');
}
}
}
static void VirtualKeyboard_PadAxis(void* obj, int port, int axis, float x, float y) {
int xSteps, ySteps;