compile_hlsl #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NOTE: this is only triggered via the gh command line tool | |
| # to compile HLSL shaders to DXBC bytecode on a non-Windows machine | |
| name: "compile_hlsl" | |
| on: workflow_dispatch | |
| jobs: | |
| compile-hlsl: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - uses: denoland/setup-deno@v2 | |
| - name: compile-hlsl | |
| run: | | |
| cd shdgen | |
| git clone --depth=1 https://github.com/floooh/sokol-tools-bin | |
| deno run --allow-all shdgen.ts --hlsl --shdcroot sokol-tools-bin | |
| - name: upload-artifact | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: hlsl-shader | |
| path: shdgen/out | |
| retention-days: 1 |