Files
Test-Runner/.gitea/workflows/swift-test.yml
thecoderatekid 0db18d6cd9
Some checks failed
CI Demo / build (push) Successful in 3s
Swift Test / swift-hello (push) Failing after 46s
Add .gitea/workflows/swift-test.yml
2025-08-07 18:17:21 +00:00

28 lines
922 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Swift Test
on: [push]
jobs:
swift-hello:
runs-on: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Swift if missing
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.orgs Ubuntu 22.04 instructions :contentReference[oaicite:0]{index=0}
- name: Verify Swift installation
run: swift --version
- name: Run “Hello, Swift!”
run: |
echo 'print("Hello, Swift!")' > main.swift
swift main.swift