Skip to content
10 changes: 8 additions & 2 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- expected-version: 5.9-dev

- os: ubuntu-latest
expected-version: 5.10

name: Test Swift toolchain install on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -24,8 +29,9 @@ jobs:
branch: development
tag: DEVELOPMENT-SNAPSHOT-2023-05-20-a

- name: Check Swift version
run: swift --version
- name: check swift version
run: swift --version && swift --version | grep -q 'version ${{ matrix.expected-version }} '
shell: bash

- name: get macOS smoke test prerequisites
if: ${{ runner.os == 'macOS' }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,5 @@ runs:
installer -pkg swift-${{ inputs.tag }}-osx.pkg -target CurrentUserHomeDirectory
rm -f swift-${{ inputs.tag }}-osx.pkg

echo "TOOLCHAINS=$(plutil -extract 'CFBundleIdentifier' xml1 ${HOME}/Library/Developer/Toolchains/swift-${{ inputs.tag }}.xctoolchain/Info.plist | xmllint --xpath '//plist/string/text()' -)" >> $GITHUB_ENV
echo "TOOLCHAINS=$(plutil -convert swift ${HOME}/Library/Developer/Toolchains/swift-${{ inputs.tag }}.xctoolchain/Info.plist -o - | sed -E -e '/"org.swift./s/.*"(org.swift[^"]*)".*/\1/')" >> $GITHUB_ENV
shell: bash