Skip to content

Commit

Permalink
Update Tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist authored Nov 19, 2024
1 parent b81bd68 commit bc82a85
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,24 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Install Swift 6.0
- name: Download and Install Swift 6.0
run: |
curl -s https://swift.org/builds/swift-6.0-release/xcode/swift-6.0-RELEASE/swift-6.0-RELEASE-osx.pkg > swift.pkg
# Define the Swift package URL
SWIFT_URL="https://swift.org/builds/swift-6.0-release/xcode/swift-6.0-RELEASE/swift-6.0-RELEASE-osx.pkg"
# Download the Swift package
curl -fSL "$SWIFT_URL" -o swift.pkg
# Check if the file was downloaded successfully
if [ ! -f swift.pkg ]; then
echo "Swift package download failed!"
exit 1
fi
# Install the downloaded Swift package
sudo installer -pkg swift.pkg -target /
# Verify the Swift version
swift --version
- name: Build
Expand Down

0 comments on commit bc82a85

Please sign in to comment.