summaryrefslogtreecommitdiff
path: root/.github
AgeCommit message (Collapse)Author
2024-11-28Add Table of Contents check to CI, and bot script to regenerate (#5618)Ellie Hermaszewska
* Sort filenames when generating table of contents The order of EnumerateFiles is unspecified * Add build table of contents bash script * Add toc checking to CI * Add --check-only option to toc checking * regenerate ToC
2024-11-27Update workflow YML files for renamed files (#5688)Jay Kwak
Recently we renamed a few files and directories and they should be reflected on the workflow YAML files. - LICENCE is a typo of LICENSE. - We recently created a new "LICENSES/" - CONTRIBUTION.md was renamed to CONTRIBUTING.md Closes #5686
2024-11-22ci: Use v1.11 of the release-downloader action (#5643)Bruce Mitchener
CI was previous using different versions in different jobs but all were old and using a version of Node that has been deprecated within the GitHub Actions infrastructure. Co-authored-by: Yong He <yonghe@outlook.com>
2024-11-22Enable core module embedding by default in CMake. (#5644)Kanashimia
It seems that release workflows were unexpectedly broken when STDLIB was renamed to CORE_MODULE. Changed the option default because I think it just makes more sense. Removed explicit calls to enable it. Fixed docs.
2024-11-21ci: Update `actions/checkout` to always use v4 (#5634)Bruce Mitchener
CI was using a mix of version 3 and 4. Version 3 results in a warning within the GitHub Actions UI as it was using a version of NodeJS that is deprecated within the GitHub Actions infrastructure.
2024-11-11Refine codeowners for proposals (#5533)Ellie Hermaszewska
Closes https://github.com/shader-slang/slang/issues/5441 Co-authored-by: Yong He <yonghe@outlook.com>
2024-11-08lower permission level for format dispatch (#5523)Ellie Hermaszewska
2024-11-05Update slang-rhi and fix error handling (#5485)cheneym2
Update slang-rhi to pick up a fix in webgpu compilation error handling. In doRenderComparisonTestRun(), only return TestResult::Pass if the shader is ran actually compiled. A similar check is in place elsewhere in slang-test-main, but was missed in doRenderComparisonTestRun(). Add two tests to the github CI skiplist, and use the skiplist in one additional CI config that was running without it. Closes 5291
2024-11-04Add codeowners file (#5482)Ellie Hermaszewska
Closes https://github.com/shader-slang/slang/issues/5440
2024-10-30fix release script (#5459)Ellie Hermaszewska
2024-10-30format yaml and json (#5428)Ellie Hermaszewska
* format yaml and json * format shell scripts
2024-10-29Put debug symbols in releases (#5370)Ellie Hermaszewska
2024-10-29preparation for clang format (#5422)Ellie Hermaszewska
* Clang-format excludes * Add .clang-format * Don't clang-format in external * Missing includes and forward declarations * Replace wonky include-once macro name * neaten include naming * Add clang-format to formatting script * Add xargs and diff to required binaries * add clang-format to ci formatting check * Add max version check to formatting script * temporarily disable checking formatting for cpp files
2024-10-29Check formatting in CI (#5409)Ellie Hermaszewska
also add ci to check cmake formatting
2024-10-29Correct URL in auto-format PR body (#5427)Ellie Hermaszewska
2024-10-29Improvements to formatting bot (#5421)Ellie Hermaszewska
* Use github token for formatting command dispatch * Open PR instead of committing directly when formatting * Add --no-version-check option to formatting script * Colorful diff output for cmake formatting
2024-10-26Use github token for formatting command dispatch (#5418)Ellie Hermaszewska
2024-10-26Actions workflow to format code on command (#5400)Ellie Hermaszewska
* Add script to perform or check formatting * Actions workflow to format code on command Comment on a PR with /format
2024-10-25Switch back to fetching upstream llvm project (#5408)Ellie Hermaszewska
* backout of commit aa64c853142076b17bd020f1386ea5fc6fcd5e3e * Use github token to fetch llvm
2024-10-18Remove sccache (#5206)Ellie Hermaszewska
* Remove sccache * CI docs
2024-10-08Overhaul docgen tool and setup CI to generate stdlib reference. (#5232)Yong He
* Overhaul docgen tool and setup CI to generate stdlib reference. * Fix build error. * Write parsed doc for all decls. * fix. * fix callout. * Fix. * Fix comment. * Fix. * Delete obsolete doc tests. * Fix. * Categorize functions and types. * Fix CI. * Update comments.
2024-10-03Checkout LLVM as a workflow action rather than git-clone command (#5202)Jay Kwak
Closes #5201 Currently ci.yml builds slang-llvm all the time for all platforms. Because it takes too long, we store the output files in the cache. If the cache server is too busy, slang-llvm will be rebuilt, which will take awhile, but it will eventually work out. The problem is that git-clone was failing for cloning the LLMV repo. This is a less expected result, because cloning a git repository normally don't fail. We think that when the git-clone command is manually executed, there might be limit on the network connection based on IP or some sort. We expect that this problem will be resolved if we use actions/checkout in the workflow. Also this commit uses a forked repo of llvm under shader-slang organization to avoid network traffic on the original llvm repo.
2024-10-03Add path to bash to GITHUB_PATH (#5217)Jay Kwak
* Add path to bash to GITHUB_PATH This is a workaround for a problem that keeps reoccurring on one of our self-hosted machines. Ideally, we should assume that bash shell is available on the runner system, and we should rely on the system-wise setting of PATH to find bash. This commit is a workaround for a case where bash cannot be found from the runner machine, which shouldn't be a case in a normal situation. It is also not safe to assume that the location of where bash is at a fixed location, because it can vary by how the system is setup. Once we root cause the issue on the SlangWin4-2, we may remove this workaround later.
2024-09-30Enable debug log for VK CTS workflow (#5197)Jay Kwak
This commit enables the workflow debug message for running VK CTS workflow. Currently three CTS tests are causing a crash of deqp with an exit code 1. And when the debug message printing is enabled, this crash is no longer happening, which is unexpected. It seems like the issue is on the CI runner process rather than Slang, driver nor deqp. We will keep the log message enabled not only to avoid the crash but also to see more information when things went wrong. This commit also prints the last 1,000 lines of TestResults.qpa when deqp had a failing test or deqp was exited unexpectedly. This will help us to debug the problem faster.
2024-09-30Disable the building of slang-llvm when targeting wasm platform (#5196)Jay Kwak
Co-authored-by: Yong He <yonghe@outlook.com>
2024-09-30Switch sccache action to Mozilla-Actions version (#5189)Ellie Hermaszewska
2024-09-30Disable wgpu on linux (#5186)Simon Kallweit
* remove setting CMAKE_SYSTEM_PROCESSOR we will need a proper toolchain file to setup cross-compilation * disable slang-rhi webgpu backend on linux this is a temporary fix for allowing the release workflow to run
2024-09-27Add CI step to build WebAssembly version of Slang (#5164)Jay Kwak
Closes #5117 This adds a build step of WebAssembly version of Slang. Currently it is enabled only for Linux/Release to reduce the time cost of CI, but the builds were all successful on all platforms and configurations when tested.
2024-09-27Add fallback flag for sccache (#5170)Ellie Hermaszewska
SCCACHE_IGNORE_SERVER_IO_ERROR=1 Closes https://github.com/shader-slang/slang/issues/5163 Co-authored-by: Yong He <yonghe@outlook.com>
2024-09-27export CMAKE_SYSTEM_PROCESSOR for cross compilation builds (#5171)Simon Kallweit
2024-09-05Remove unused package in primary benchmark script (#5014)venkataram-nv
Also fixes the self-hosted machine that is used for benchmarking, so that variance of timings can be reduced.
2024-09-04Push benchmark results to a viewable page (#4996)venkataram-nv
* Push benchmark results to slang-material-modules results page (#4993) * Increasing sample count for push benchmark pipeline * Enable only for master branch
2024-08-30Updated MDL shader sources for benchmarks (#4965)venkataram-nv
* Updated MDL shader sources for benchmarks * Shifting sources to external repository * Changing repo URL syntax benchmark.yml * Refactoring entry point names
2024-08-30Draft: integrate slang-rhi (#4970)Simon Kallweit
* add slang-rhi submodule * refactor render-test to use slang-rhi and remove OpenGL support * remove -vk -glsl tests * remove gl test * disable failing test * allow recursive submodules in github actions * update slang-rhi * update slang-rhi --------- Co-authored-by: Yong He <yonghe@outlook.com>
2024-08-28Auto-cancel obsolete MDL benchmark jobs. (#4929)Yong He
2024-08-26Feature/record unit test (#4910)kaizhangNV
* Fix the slang-test bug Since we reorganize the build directory, now the libraries are located at different directory with executables in non-Windows platform, we have to change the code on how to find the dll directory. * Integrate the record/replay test into slang-unit-test We create a unit-test-record-replay.cpp to run the converted slang examples in child process as our tests for the record-replay layer. * Disable the test on Apple Due to the limitation of current examples, we temporarily disable them on apples. Change the ci to make this test only be run on the gpu-equipped runners, for other runners we add a white-list file "expected-failure-record-replay-tests.txt". * Remove 'hello-world' example from unit test "hello-world" doesn't use gfx abstract library, instead it uses vk directly, it's not a preferable way. So we will drop this test, instead, we will use cpu-hello-world example.
2024-08-21Allow creating draft releases from tags containing "draft" (#4896)Ellie Hermaszewska
* Allow creating draft releases from tags containing "draft" * make draft releases prereleases too
2024-08-15Refactoring benchmark CI pipeline (#4855)venkataram-nv
* Refactoring benchmark CI pipeline * Combine setup and run steps
2024-08-13GitHub action benchmark (#4804)venkataram-nv
Adds a new Github CI action for benchmarking the slangc compiler on the MDL shaders. For now, the results are only dumped to the output of the CI, which can be later viewed through raw logs. The next step is to use github-action-benchmark to push these results into a page which will show the benchmark results over time as commits are pushed.
2024-07-25Don't trigger CI on doc changes. (#4736)Yong He
2024-07-18Separating slang-test in CI for emit-spirv-via-glsl (#4665)Jay Kwak
* Separating slang-test in CI for emit-spirv-via-glsl When CI test fails, we expect to see the error messages at the end of each section of CI testing result. But currently when "emit-spirv-via-glsl" fails, the error messages appear in the middle, which lead us to believe that there is no errors when you look only at the end of the result. This commit separates out the "emit-spirv-via-glsl" case to make the error message more visiable.
2024-07-18Enable warnings-as-error for CI (#4659)Jay Kwak
Enable warnings-as-error for CI Closes #4664. Uses glslang commit that fixed a compiler warning Fixes a recent warning from external/CMakelist.txt A new macro, `SLANG_MAYBE_UNUSED` is added for a future need.
2024-07-13Fix release configuration for macOS. (#4629)Yong He
2024-07-11More precise handing of option dependencies (#4612)Ellie Hermaszewska
2024-07-10Make ci scripts more robust (#4608)Ellie Hermaszewska
* Remove syntax error in release script * Make ci scripts more robust * Remove lib copying * Add bin directory to RPATH
2024-07-10revert release script change. (#4607)Yong He
2024-07-10release script: copy lib to bin. (#4605)Yong He
2024-07-10Fix release script. (#4604)Yong He
* Fix release script. * Macos release - sign binaries.
2024-07-10Another fix in macos release script. (#4603)Yong He
* Another fix in macos release script. * Fix.
2024-07-10Delete unused build scripts. (#4601)Yong He
* Fix macos release script. * Delete shell scripts