From fba75a6f3f3c26b05cf4c826bff4a102972d348c Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Thu, 15 May 2025 15:28:05 -0700 Subject: 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. --- .github/workflows/check-cmdline-ref.yml | 8 +++++++- .github/workflows/regenerate-cmdline-ref.yml | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to '.github') 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 -- cgit v1.2.3