yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
c1734f62
vulkan-sdk-1.4.357.0
1# NOTE: The following documentation may be useful to maintainers of this workflow. 2# Github actions: https://docs.github.com/en/actions 3# Github github-script action: https://github.com/actions/github-script 4# GitHub REST API: https://docs.github.com/en/rest 5# Octokit front-end to the GitHub REST API: https://octokit.github.io/rest.js/v18 6# Octokit endpoint methods: https://github.com/octokit/plugin-rest-endpoint-methods.js/tree/master/docs/repos 7 8# TODO: Use actions/upload-artifact and actions/download-artifact to simplify deployment. 9# TODO: Use composite actions to refactor redundant code. 10 11name : Continuous Deployment 12 13on : 14workflow_dispatch : 15push : 16branches : 17- main 18paths-ignore : 19- 'README.md' 20- 'LICENSE.txt' 21- 'CODE_OF_CONDUCT.md' 22- 'BUILD.*' 23- 'WORKSPACE' 24- 'kokoro/*' 25- 'make-revision' 26- 'Android.mk' 27- '_config.yml' 28 29permissions : read-all 30 31jobs : 32linux : 33runs-on : ${{matrix.os.genus}} 34permissions : 35contents : write 36strategy : 37fail-fast : false 38matrix : 39os : [{ genus : ubuntu-22.04 , family : linux }] 40compiler : [{ cc : clang , cxx : clang++ } , { cc : gcc , cxx : g++ }] 41cmake_build_type : [ Debug , Release ] 42steps : 43- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 44- run : ./update_glslang_sources.py 45- name : Build 46env : 47CC : ${{matrix.compiler.cc}} 48CXX : ${{matrix.compiler.cxx}} 49run : | 50mkdir build && cd build 51cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. 52make -j4 install 53- name : Test 54run : | 55cd build 56ctest --output-on-failure 57- name : Zip 58if : ${{ matrix.compiler.cc == 'clang' }} 59env : 60ARCHIVE : glslang-main-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip 61run : | 62cd build/install 63zip ${ARCHIVE} \ 64bin/glslang \ 65bin/glslangValidator \ 66include/glslang/* \ 67include/glslang/**/* \ 68lib/libGenericCodeGen.a \ 69lib/libglslang.a \ 70lib/libglslang-default-resource-limits.a \ 71lib/libMachineIndependent.a \ 72lib/libOSDependent.a \ 73lib/libSPIRV.a \ 74lib/libSPIRV-Tools.a \ 75lib/libSPIRV-Tools-opt.a 76- name : Deploy 77if : ${{ matrix.compiler.cc == 'clang' }} 78env : 79ARCHIVE : glslang-main-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip 80uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 81with : 82script : | 83const script = require('.github/workflows/deploy.js') 84await script({github, context, core}) 85 86macos : 87runs-on : ${{matrix.os.genus}} 88permissions : 89contents : write 90strategy : 91fail-fast : false 92matrix : 93os : [{ genus : macos-latest , family : osx }] 94compiler : [{ cc : clang , cxx : clang++ }] 95cmake_build_type : [ Debug , Release ] 96steps : 97- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 98- run : ./update_glslang_sources.py 99- name : Build 100env : 101CC : ${{matrix.compiler.cc}} 102CXX : ${{matrix.compiler.cxx}} 103MACOSX_DEPLOYMENT_TARGET : 11.0 104run : | 105mkdir build && cd build 106cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install "-D CMAKE_OSX_ARCHITECTURES=arm64;x86_64" .. 107make -j4 install 108- name : Test 109run : | 110cd build 111ctest --output-on-failure 112- name : Zip 113env : 114ARCHIVE : glslang-main-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip 115run : | 116cd build/install 117zip ${ARCHIVE} \ 118bin/glslang \ 119bin/glslangValidator \ 120include/glslang/* \ 121include/glslang/**/* \ 122lib/libGenericCodeGen.a \ 123lib/libglslang.a \ 124lib/libglslang-default-resource-limits.a \ 125lib/libMachineIndependent.a \ 126lib/libOSDependent.a \ 127lib/libSPIRV.a \ 128lib/libSPIRV-Tools.a \ 129lib/libSPIRV-Tools-opt.a 130- name : Deploy 131env : 132ARCHIVE : glslang-main-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip 133uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 134with : 135script : | 136const script = require('.github/workflows/deploy.js') 137await script({github, context, core}) 138 139windows : 140runs-on : ${{matrix.os.genus}} 141permissions : 142contents : write 143strategy : 144fail-fast : false 145matrix : 146os : [{ genus : windows-2022 , family : windows }] 147cmake_build_type : [ Debug , Release ] 148steps : 149- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 150- run : python update_glslang_sources.py 151- name : Build 152run : | 153cmake -S. -Bbuild -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="$PWD/build/install" 154cmake --build build --config ${{matrix.cmake_build_type}} --target install 155- name : Test 156run : | 157cd build 158ctest -C ${{matrix.cmake_build_type}} --output-on-failure 159- name : Zip 160if : ${{ matrix.cmake_build_type == 'Debug' }} 161env : 162ARCHIVE : glslang-master-${{matrix.os.family}}-Debug.zip 163run : | 164cd build/install 1657z a ${{env.ARCHIVE}} ` 166bin/glslang.exe ` 167bin/glslangValidator.exe ` 168include/glslang/* ` 169lib/GenericCodeGend.lib ` 170lib/glslangd.lib ` 171lib/glslang-default-resource-limitsd.lib ` 172lib/MachineIndependentd.lib ` 173lib/OSDependentd.lib ` 174lib/SPIRVd.lib ` 175lib/SPIRV-Toolsd.lib ` 176lib/SPIRV-Tools-optd.lib 177- name : Zip 178if : ${{ matrix.cmake_build_type == 'Release' }} 179env : 180ARCHIVE : glslang-master-${{matrix.os.family}}-Release.zip 181run : | 182cd build/install 1837z a ${{env.ARCHIVE}} ` 184bin/glslang.exe ` 185bin/glslangValidator.exe ` 186include/glslang/* ` 187lib/GenericCodeGen.lib ` 188lib/glslang.lib ` 189lib/glslang-default-resource-limits.lib ` 190lib/MachineIndependent.lib ` 191lib/OSDependent.lib ` 192lib/SPIRV.lib ` 193lib/SPIRV-Tools.lib ` 194lib/SPIRV-Tools-opt.lib 195- name : Deploy 196env : 197ARCHIVE : glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip 198uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 199with : 200script : | 201const script = require('.github/workflows/deploy.js') 202await script({github, context, core})