yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
e9a309678
master
1#!/usr/bin/env bash 2set -e 3 4# The github action runners don't have libreadline and we don't need it 5make -C external/lua MYCFLAGS="-DLUA_USE_POSIX" MYLIBS="" 6external/lua/lua -v 7 8# Run the check 9if !./external/lua/lua extras/check-ir-stable-names.lua check;then 10echo "Check failed. Running update..." 11./external/lua/lua extras/check-ir-stable-names.lua update 12 13echo -e "\n=== Diff of changes made ===" 14git diff--color=always source/slang/slang-ir-insts-stable-names.lua ||true 15 16# Also create a summary for GitHub Actions 17if [ -n" $ GITHUB_STEP_SUMMARY " ];then 18 { 19echo "## IR Stable Names Table Update Required" 20echo "The following changes need to be made to \`source/slang/slang-ir-insts-stable-names.lua\`:" 21echo '```diff' 22git diff source/slang/slang-ir-insts-stable-names.lua 23echo '```' 24 }>> " $ GITHUB_STEP_SUMMARY " 25fi 26 27# Fail the job since the check failed 28exit 1 29fi