From b950b2bcb68fcbbe9e30ef52f01aa14b9146c8b6 Mon Sep 17 00:00:00 2001 From: Pasha Stetsenko Date: Thu, 16 Nov 2023 13:55:46 -0800 Subject: [PATCH] show github context --- .github/workflows/build-and-test-windows.yml | 2 ++ ci/xbuild/compiler.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-windows.yml b/.github/workflows/build-and-test-windows.yml index 8a0561464..b53e350c4 100644 --- a/.github/workflows/build-and-test-windows.yml +++ b/.github/workflows/build-and-test-windows.yml @@ -20,6 +20,7 @@ jobs: DT_BUILD_SUFFIX: '' DT_RELEASE: '' DT_MSVC_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise + GITHUB_CONTEXT: ${{ toJson(github) }} steps: - name: Checkout code @@ -52,6 +53,7 @@ jobs: echo "GITHUB_EVENT_NUMBER = $env:GITHUB_EVENT_NUMBER" echo "GITHUB_REF = $env:GITHUB_REF" echo "GITHUB_PULL_REQUEST_HEAD_REPO_BRANCH = $env:GITHUB_PULL_REQUEST_HEAD_REPO_BRANCH" + echo "GITHUB_CONTEXT = $env:GITHUB_CONTEXT" echo "DT_HARNESS = $env:DT_HARNESS" echo "DT_BUILD_ID = $env:DT_BUILD_ID" echo "DT_RELEASE = $env:DT_RELEASE" diff --git a/ci/xbuild/compiler.py b/ci/xbuild/compiler.py index 446a180c7..520a1cee2 100644 --- a/ci/xbuild/compiler.py +++ b/ci/xbuild/compiler.py @@ -184,9 +184,11 @@ def _detect_compiler_executable(self): def print_path(path: pathlib.Path, indent: str): for p in path.iterdir(): - self.log.info(p.name + '/'*p.is_dir(), indent=indent) if p.is_dir(): + self.log.info(p.name + '/', indent=indent) print_path(p, indent + " ") + elif p.suffix.endswith('exe'): + self.log.info(p.name, indent=indent) self.log.info(f"MSVC_path = {msvc_path}:") print_path(pathlib.Path(msvc_path), indent = " ")