Update .gitea/workflows/swift-test.yml
All checks were successful
CI Demo / build (push) Successful in 3s
Swift Test / swift-hello (push) Successful in 44s

This commit is contained in:
2025-08-07 18:23:41 +00:00
parent a11a23754a
commit 450c1ffcc3

View File

@@ -8,16 +8,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Swift if missing
- name: Install Swift
run: |
if ! command -v swift >/dev/null; then
# Download Swift 6.1 for Ubuntu 22.04
wget https://download.swift.org/swift-6.1-release/ubuntu2204/swift-6.1-RELEASE/swift-6.1-RELEASE-ubuntu22.04.tar.gz
tar xzf swift-6.1-RELEASE-ubuntu22.04.tar.gz
# Add to PATH for this job
export PATH="${PWD}/swift-6.1-RELEASE-ubuntu22.04/usr/bin:${PATH}"
fi
# Based on Swift.org's Ubuntu 22.04 instructions :contentReference[oaicite:0]{index=0}
echo "${PWD}/swift-6.1-RELEASE-ubuntu22.04/usr/bin" >> $GITHUB_PATH
- name: Verify Swift installation
run: swift --version