summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-05-15 15:28:05 -0700
committerGitHub <noreply@github.com>2025-05-15 22:28:05 +0000
commitfba75a6f3f3c26b05cf4c826bff4a102972d348c (patch)
treeacde9185434f55cc8675bdae913e723b1d27841d /.github/workflows
parent0d6312f3be66f4bff9eec9606228db3edc309e2c (diff)
Fix slangc path used by cmdline reference doc regeneration action (#7128)
This change uses a different path for accessing the slangc binary during the command line reference doc regeneration action, as the environment variable referenced for the bin directory may not be accurate. This change also makes some exclusions from the slang build in the command line reference actions, to speed up those builds for checking/regenerating.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/check-cmdline-ref.yml8
-rw-r--r--.github/workflows/regenerate-cmdline-ref.yml10
2 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/check-cmdline-ref.yml b/.github/workflows/check-cmdline-ref.yml
index 2ae4dc011..3eb90599a 100644
--- a/.github/workflows/check-cmdline-ref.yml
+++ b/.github/workflows/check-cmdline-ref.yml
@@ -31,7 +31,13 @@ jobs:
- name: Build Slang
run: |
cmake --preset default --fresh \
- -DSLANG_SLANG_LLVM_FLAVOR=DISABLE
+ -DSLANG_SLANG_LLVM_FLAVOR=DISABLE \
+ -DSLANG_ENABLE_TESTS=OFF \
+ -DSLANG_ENABLE_EXAMPLES=OFF \
+ -DSLANG_ENABLE_GFX=OFF \
+ -DSLANG_ENABLE_SLANGD=OFF \
+ -DSLANG_EXCLUDE_DAWN=ON \
+ -DSLANG_EXCLUDE_TINT=ON
cmake --workflow --preset release
- name: Generate command line reference
diff --git a/.github/workflows/regenerate-cmdline-ref.yml b/.github/workflows/regenerate-cmdline-ref.yml
index 1a293f883..9e093f5ac 100644
--- a/.github/workflows/regenerate-cmdline-ref.yml
+++ b/.github/workflows/regenerate-cmdline-ref.yml
@@ -43,7 +43,13 @@ jobs:
run: |
cd pr-branch
cmake --preset default --fresh \
- -DSLANG_SLANG_LLVM_FLAVOR=DISABLE
+ -DSLANG_SLANG_LLVM_FLAVOR=DISABLE \
+ -DSLANG_ENABLE_TESTS=OFF \
+ -DSLANG_ENABLE_EXAMPLES=OFF \
+ -DSLANG_ENABLE_GFX=OFF \
+ -DSLANG_ENABLE_SLANGD=OFF \
+ -DSLANG_EXCLUDE_DAWN=ON \
+ -DSLANG_EXCLUDE_TINT=ON
cmake --workflow --preset release
- name: Regenerate Command Line Reference
@@ -51,7 +57,7 @@ jobs:
run: |
cd pr-branch
mkdir -p docs
- "$bin_dir/slangc" -help-style markdown -h > docs/command-line-slangc-reference.md 2>&1
+ ./build/${{ env.cmake_config }}/bin/slangc -help-style markdown -h > docs/command-line-slangc-reference.md 2>&1
- name: Configure Git commit signing
id: git-info