-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (83 loc) · 5.24 KB
/
emscripten-webgpu.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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 Texture
working-directory: Texture
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile MultiWindow
working-directory: MultiWindow
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile ComputeShader
working-directory: ComputeShader
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile TextureArray
working-directory: TextureArray
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile ShaderG5
working-directory: ShaderG5
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
- name: Compile 11_instanced_rendering
working-directory: 11_instanced_rendering
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 12_set_render_target_depth
working-directory: 12_set_render_target_depth
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 13_generate_mipmaps
working-directory: 13_generate_mipmaps
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 14_set_mipmap
working-directory: 14_set_mipmap
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make
- name: Compile 15_deinterleaved_buffers
working-directory: 15_deinterleaved_buffers
run: ../emsdk/emsdk activate latest && source ../emsdk/emsdk_env.sh && ../Kinc/make emscripten -g webgpu --compile && cd build/Release && make