Skip to content

Update Kinc

Update Kinc #233

name: Emscripten (WebGPU)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Submodules
run: ./get_dlc
- name: Setup emscripten
run: git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && ./emsdk install latest
- name: Compile Shader
working-directory: Shader
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 00_empty
working-directory: 00_empty
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 01_triangle
working-directory: 01_triangle
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 02_matrix
working-directory: 02_matrix
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 03_colored_cube
working-directory: 03_colored_cube
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 04_textured_cube
working-directory: 04_textured_cube
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 05_camera_controls
working-directory: 05_camera_controls
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 06_render_targets
working-directory: 06_render_targets
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 07_multiple_render_targets
working-directory: 07_multiple_render_targets
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 08_float_render_targets
working-directory: 08_float_render_targets
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 09_depth_render_targets
working-directory: 09_depth_render_targets
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 10_cubemap
working-directory: 10_cubemap
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make