@@ -34,35 +34,34 @@ jobs:
34
34
35
35
- name : Run test script with all examples
36
36
run : |
37
- python examples/test.py
37
+ cd examples
38
+ python test.py
38
39
39
40
- name : Run individual examples with multiple backends
40
41
run : |
41
- mkdir -p output
42
-
43
42
# Array Test
44
- python -c "import crosstl; crosstl.translate('examples/ ArrayTest.cgl', backend='metal', save_shader='output/ArrayTest.metal')"
45
- python -c "import crosstl; crosstl.translate('examples/ ArrayTest.cgl', backend='opengl', save_shader='output/ArrayTest.glsl')"
46
- python -c "import crosstl; crosstl.translate('examples/ ArrayTest.cgl', backend='directx', save_shader='output/ArrayTest.hlsl')"
47
- python -c "import crosstl; crosstl.translate('examples/ ArrayTest.cgl', backend='vulkan', save_shader='output/ArrayTest.spirv')"
43
+ python -c "import crosstl; crosstl.translate('ArrayTest.cgl', backend='metal', save_shader='output/ArrayTest.metal')"
44
+ python -c "import crosstl; crosstl.translate('ArrayTest.cgl', backend='opengl', save_shader='output/ArrayTest.glsl')"
45
+ python -c "import crosstl; crosstl.translate('ArrayTest.cgl', backend='directx', save_shader='output/ArrayTest.hlsl')"
46
+ python -c "import crosstl; crosstl.translate('ArrayTest.cgl', backend='vulkan', save_shader='output/ArrayTest.spirv')"
48
47
49
48
# Simple Shader
50
- python -c "import crosstl; crosstl.translate('examples/ SimpleShader.cgl', backend='metal', save_shader='output/SimpleShader.metal')"
51
- python -c "import crosstl; crosstl.translate('examples/ SimpleShader.cgl', backend='opengl', save_shader='output/SimpleShader.glsl')"
52
- python -c "import crosstl; crosstl.translate('examples/ SimpleShader.cgl', backend='directx', save_shader='output/SimpleShader.hlsl')"
53
- python -c "import crosstl; crosstl.translate('examples/ SimpleShader.cgl', backend='vulkan', save_shader='output/SimpleShader.spirv')"
49
+ python -c "import crosstl; crosstl.translate('SimpleShader.cgl', backend='metal', save_shader='output/SimpleShader.metal')"
50
+ python -c "import crosstl; crosstl.translate('SimpleShader.cgl', backend='opengl', save_shader='output/SimpleShader.glsl')"
51
+ python -c "import crosstl; crosstl.translate('SimpleShader.cgl', backend='directx', save_shader='output/SimpleShader.hlsl')"
52
+ python -c "import crosstl; crosstl.translate('SimpleShader.cgl', backend='vulkan', save_shader='output/SimpleShader.spirv')"
54
53
55
54
# Perlin Noise
56
- python -c "import crosstl; crosstl.translate('examples/ PerlinNoise.cgl', backend='metal', save_shader='output/PerlinNoise.metal')"
57
- python -c "import crosstl; crosstl.translate('examples/ PerlinNoise.cgl', backend='opengl', save_shader='output/PerlinNoise.glsl')"
58
- python -c "import crosstl; crosstl.translate('examples/ PerlinNoise.cgl', backend='directx', save_shader='output/PerlinNoise.hlsl')"
59
- python -c "import crosstl; crosstl.translate('examples/ PerlinNoise.cgl', backend='vulkan', save_shader='output/PerlinNoise.spirv')"
55
+ python -c "import crosstl; crosstl.translate('PerlinNoise.cgl', backend='metal', save_shader='output/PerlinNoise.metal')"
56
+ python -c "import crosstl; crosstl.translate('PerlinNoise.cgl', backend='opengl', save_shader='output/PerlinNoise.glsl')"
57
+ python -c "import crosstl; crosstl.translate('PerlinNoise.cgl', backend='directx', save_shader='output/PerlinNoise.hlsl')"
58
+ python -c "import crosstl; crosstl.translate('PerlinNoise.cgl', backend='vulkan', save_shader='output/PerlinNoise.spirv')"
60
59
61
60
# Complex Shader
62
- python -c "import crosstl; crosstl.translate('examples/ ComplexShader.cgl', backend='metal', save_shader='output/ComplexShader.metal')"
63
- python -c "import crosstl; crosstl.translate('examples/ ComplexShader.cgl', backend='opengl', save_shader='output/ComplexShader.glsl')"
64
- python -c "import crosstl; crosstl.translate('examples/ ComplexShader.cgl', backend='directx', save_shader='output/ComplexShader.hlsl')"
65
- python -c "import crosstl; crosstl.translate('examples/ ComplexShader.cgl', backend='vulkan', save_shader='output/ComplexShader.spirv')"
61
+ python -c "import crosstl; crosstl.translate('ComplexShader.cgl', backend='metal', save_shader='output/ComplexShader.metal')"
62
+ python -c "import crosstl; crosstl.translate('ComplexShader.cgl', backend='opengl', save_shader='output/ComplexShader.glsl')"
63
+ python -c "import crosstl; crosstl.translate('ComplexShader.cgl', backend='directx', save_shader='output/ComplexShader.hlsl')"
64
+ python -c "import crosstl; crosstl.translate('ComplexShader.cgl', backend='vulkan', save_shader='output/ComplexShader.spirv')"
66
65
shell : bash
67
66
continue-on-error : true
68
67
@@ -118,6 +117,6 @@ jobs:
118
117
- name : Run ${{ matrix.combination.example }} on ${{ matrix.combination.backend }} backend
119
118
run : |
120
119
mkdir -p output
121
- python -c "import crosstl; crosstl.translate('examples/ ${{ matrix.combination.example }}.cgl', backend='${{ matrix.combination.backend }}', save_shader='output/${{ matrix.combination.example }}${{ matrix.combination.extension }}')"
120
+ python -c "import crosstl; crosstl.translate('${{ matrix.combination.example }}.cgl', backend='${{ matrix.combination.backend }}', save_shader='output/${{ matrix.combination.example }}${{ matrix.combination.extension }}')"
122
121
shell : bash
123
122
continue-on-error : true
0 commit comments