From bc82a85cdf7c042dcc695fdca714b155931bb785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20J?= <30n1st@gmail.com> Date: Tue, 19 Nov 2024 05:16:30 +0100 Subject: [PATCH] Update Tests.yml --- .github/workflows/Tests.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 39f8ac5..a273261 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -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