Skip to content

Commit

Permalink
Check that link.exe is the right one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 8, 2024
1 parent 18e7c2e commit 7c375e4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ jobs:
branch: swift-${{ env.swift-version }}-release
tag: ${{ env.swift-version }}-RELEASE

- name: Check location of link.exe
if: ${{ matrix.os == 'windows-latest' }}
run: |
$fullPath = (Get-Command "link").Path
Write-Host "Full path to link: $fullPath"
link --help
if ($errorOccurred) { Exit 1 }
- name: Install LLVM
# 7z doesn't support decompressing from a stream or we'd do
# this all as one statement. Maybe we should find a way to use
Expand Down Expand Up @@ -101,10 +109,26 @@ jobs:
echo 'PKG_CONFIG_PATH=${{ github.workspace }}/pkg-config' >> $GITHUB_ENV
shell: bash

- name: Check location of link.exe
if: ${{ matrix.os == 'windows-latest' }}
run: |
$fullPath = (Get-Command "link").Path
Write-Host "Full path to link: $fullPath"
link --help
if ($errorOccurred) { Exit 1 }
- name: Build and Test via SPM
run: swift test -v ${{ matrix.swift_test_options }} -c ${{ matrix.spm_configuration }}
working-directory: Swifty-LLVM

- name: Check location of link.exe
if: ${{ matrix.os == 'windows-latest' }}
run: |
$fullPath = (Get-Command "link").Path
Write-Host "Full path to link: $fullPath"
link --help
if ($errorOccurred) { Exit 1 }
- name: Export Coverage
if: ${{ contains(matrix.swift_test_options, '--enable-code-coverage') }}
working-directory: Swifty-LLVM
Expand Down

0 comments on commit 7c375e4

Please sign in to comment.