Set up a GitHub workflow for Preternatural/AI #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# GitHub recommends pinning actions to a commit SHA. | |
# To get a newer version, you will need to update the SHA. | |
# You can also reference a tag or branch, but the action may change without warning. | |
name: Swift | |
on: | |
push: | |
branches: [ main ] # Trigger workflow on push events to the main branch | |
pull_request: | |
branches: [ main ] # Also trigger workflow on pull requests to the main branch | |
jobs: | |
build: | |
name: Build and Test 🚀 | |
runs-on: [macos-latest] # You can include both macOS and Ubuntu if needed | |
steps: | |
- name: Checkout Repository 🔄 | |
uses: actions/checkout@v3 | |
- name: Set up Xcode 🛠️ | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "15.0" | |
- name: Build | |
run: swift build | |