Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shndrs authored Dec 7, 2024
1 parent e3e3285 commit 36f1315
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
run: |
# Fetch the latest snapshot URL for Ubuntu 22.04
SNAPSHOT_URL=$(curl -s https://www.swift.org/builds/development/ubuntu2204/latest-build.yml \
| grep 'download:' | grep 'ubuntu22.04' | awk '{print $2}')
| grep 'download:' | grep 'ubuntu22.04' | awk '{print $2}' | tr -d '[:space:]')
# Ensure URL is found
if [ -z "$SNAPSHOT_URL" ]; then
echo "Error: Snapshot URL not found!"
exit 1
fi
# Download the snapshot
wget $SNAPSHOT_URL -O swift-latest.tar.gz
Expand Down

0 comments on commit 36f1315

Please sign in to comment.