Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try a uniform setup-swift again. #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- ".editorconfig"

env:
swift-version: '5.10'
swift-version: '5.10.0'

jobs:
dev-container:
Expand Down Expand Up @@ -123,19 +123,9 @@ jobs:
xcode-version: latest-stable

- name: 'Set up swift (non-Windows)'
if: ${{ runner.os != 'Windows' }}
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ env.swift-version }}
cache-snapshot: false # Workaround for https://github.com/SwiftyLab/setup-swift/issues/315

- uses: compnerd/gha-setup-vsdevenv@main
- name: Set up swift (Windows)
if: ${{ runner.os == 'Windows' }}
uses: compnerd/[email protected]
with:
branch: swift-${{ env.swift-version }}-release
tag: ${{ env.swift-version }}-RELEASE

- name: Verify swift version
run: swift --version && swift --version | grep -q ${{ env.swift-version }}
Expand Down Expand Up @@ -205,7 +195,6 @@ jobs:
working-directory: Swifty-LLVM

- name: Build and Test via SPM
if: ${{ runner.os != 'Windows' || env.swift-version != '5.10' }}
run: swift test -v ${{ matrix.swift_test_options }} -c ${{ matrix.spm_configuration }}
working-directory: Swifty-LLVM

Expand Down
Loading