Build Dependencies #12
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
| name: Build Dependencies | |
| on: workflow_dispatch | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| strategy: | |
| matrix: | |
| configuration: [Debug, Release] | |
| platform: [x64] | |
| steps: | |
| - run: Get-PSDrive | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Setup MSVC environment manually | |
| shell: cmd # Must use cmd shell to correctly execute the .bat file | |
| run: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
| - name: Build glslang | |
| working-directory: ./Dependencies | |
| run: 'Build_glslang_${{ matrix.configuration }}.bat' | |
| shell: cmd | |
| - name: Build SPIRV-Cross | |
| working-directory: ./Dependencies | |
| run: 'Build_SPIRV-Cross_${{ matrix.configuration }}.bat' | |
| shell: cmd | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: 'ShaderGlass_Dependencies_${{ matrix.platform }}_${{ matrix.configuration }}' | |
| path: | | |
| Dependencies/${{ matrix.configuration }}/glslang/glslang/${{ matrix.configuration }}/glslang*.lib | |
| Dependencies/${{ matrix.configuration }}/SPIRV-Cross/${{ matrix.configuration }}/*.lib | |
| overwrite: true |