From b0e57f49b087d1a0a8854daed4def4dfa4a6b0b5 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 17 Sep 2025 10:02:42 -0400 Subject: [PATCH] Add a call to `clang --version` in the PR worfklow. This change adds a call to `clang --version` after `swift --version` in the PR workflow YML file. The result of this command is useful for investigating issues stemming from out-of-date clang builds such as https://github.com/swiftlang/swift-testing/pull/1320. --- .github/workflows/swift_package_test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/swift_package_test.yml b/.github/workflows/swift_package_test.yml index d3ba7a4..a4aaeea 100644 --- a/.github/workflows/swift_package_test.yml +++ b/.github/workflows/swift_package_test.yml @@ -180,6 +180,8 @@ jobs: run: echo "DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode_version }}.app" >> $GITHUB_ENV - name: Swift version run: xcrun swift --version + - name: Clang version + run: xcrun clang --version - name: Pre-build run: ${{ inputs.macos_pre_build_command }} - name: Build / Test @@ -202,6 +204,8 @@ jobs: steps: - name: Swift version run: swift --version + - name: Clang version + run: clang --version - name: Checkout repository uses: actions/checkout@v4 if: ${{ matrix.os_version != 'amazonlinux2' }} @@ -244,6 +248,8 @@ jobs: steps: - name: Swift version run: swift --version + - name: Clang version + run: clang --version - name: Checkout repository uses: actions/checkout@v4 if: ${{ matrix.os_version != 'amazonlinux2' }} @@ -299,6 +305,8 @@ jobs: steps: - name: Swift version run: swift --version + - name: Clang version + run: clang --version - name: Checkout repository uses: actions/checkout@v4 if: ${{ matrix.os_version != 'amazonlinux2' }} @@ -354,6 +362,8 @@ jobs: steps: - name: Swift version run: swift --version + - name: Clang version + run: clang --version - name: Checkout repository uses: actions/checkout@v4 - name: Provide token @@ -458,6 +468,7 @@ jobs: } Invoke-Program swift --version Invoke-Program swift test --version + Invoke-Program clang --version Invoke-Program cd $Source '@ >> $env:TEMP\test-script\run.ps1