Skip to content

Commit

Permalink
Write GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 24, 2024
1 parent 9b49678 commit a2db3c2
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 16 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/windows-direct3d12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Windows (Direct3D 12)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3


- name: Get Submodules
run: ./get_dlc

- name: Compile Shader
working-directory: Shader
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile Texture
working-directory: Texture
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile ComputeShader
working-directory: ComputeShader
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile TextureArray
working-directory: TextureArray
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 00_empty
working-directory: 00_empty
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 01_triangle
working-directory: 01_triangle
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 02_matrix
working-directory: 02_matrix
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 03_colored_cube
working-directory: 03_colored_cube
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 04_textured_cube
working-directory: 04_textured_cube
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 05_camera_controls
working-directory: 05_camera_controls
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 06_render_targets
working-directory: 06_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 07_multiple_render_targets
working-directory: 07_multiple_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 08_float_render_targets
working-directory: 08_float_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 09_depth_render_targets
working-directory: 09_depth_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 10_cubemap
working-directory: 10_cubemap
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 11_instanced_rendering
working-directory: 11_instanced_rendering
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 12_set_render_target_depth
working-directory: 12_set_render_target_depth
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 13_generate_mipmaps
working-directory: 13_generate_mipmaps
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 14_set_mipmap
working-directory: 14_set_mipmap
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
- name: Compile 15_deinterleaved_buffers
working-directory: 15_deinterleaved_buffers
run: ../Kinc/make windows -v vs2022 -g direct3d12 --compile
31 changes: 15 additions & 16 deletions write_workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ const path = require('path');

const samples = [
'Shader',
/*'Texture',
'MultiWindow',
'Texture',
//'MultiWindow',
'ComputeShader',
'TextureArray',
'ShaderG5',
'RuntimeShaderCompilation',*/
//'RuntimeShaderCompilation',
'00_empty',
'01_triangle',
'02_matrix',
Expand All @@ -20,11 +19,11 @@ const samples = [
'08_float_render_targets',
'09_depth_render_targets',
'10_cubemap',
/*'11_instanced_rendering',
'11_instanced_rendering',
'12_set_render_target_depth',
'13_generate_mipmaps',
'14_set_mipmap',
'15_deinterleaved_buffers'*/
'15_deinterleaved_buffers'
];

const workflowsDir = path.join('.github', 'workflows');
Expand Down Expand Up @@ -292,18 +291,18 @@ ${postfixSteps}
}

const workflows = [
{
/*{
sys: 'Android',
gfx: 'OpenGL',
runsOn: 'ubuntu-latest',
java: true
},
/*{
{
sys: 'Android',
gfx: 'Vulkan',
runsOn: 'ubuntu-latest',
java: true
},*/
},
{
sys: 'Emscripten',
gfx: 'WebGL',
Expand All @@ -330,11 +329,11 @@ const workflows = [
run: git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && ./emsdk install latest
`
},
/*{
{
sys: 'FreeBSD',
gfx: 'OpenGL',
runsOn: 'macos-12'
},*/
},
{
sys: 'iOS',
gfx: 'Metal',
Expand Down Expand Up @@ -365,7 +364,7 @@ const workflows = [
`,
RuntimeShaderCompilation: true
},
/*{
{
sys: 'Linux',
gfx: 'Vulkan',
runsOn: 'ubuntu-latest',
Expand All @@ -379,7 +378,7 @@ const workflows = [
- name: Apt Install
run: sudo apt install libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev vulkan-sdk libwayland-dev wayland-protocols libxkbcommon-dev ninja-build --yes --quiet
`
},*/
},
{
sys: 'macOS',
gfx: 'Metal',
Expand Down Expand Up @@ -413,19 +412,19 @@ const workflows = [
runsOn: 'windows-latest',
RuntimeShaderCompilation: true,
vs: 'vs2022'
},
},*/
{
sys: 'Windows',
gfx: 'Direct3D 12',
runsOn: 'windows-latest',
vs: 'vs2022'
},
}/*,
{
sys: 'Windows',
gfx: 'OpenGL',
runsOn: 'windows-latest',
vs: 'vs2022'
}/*,
},
{
sys: 'Windows',
gfx: 'Vulkan',
Expand Down

0 comments on commit a2db3c2

Please sign in to comment.