Skip to content

Set up a GitHub workflow for Preternatural/AI #38

Set up a GitHub workflow for Preternatural/AI

Set up a GitHub workflow for Preternatural/AI #38

Workflow file for this run

# 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: "14.2"
- name: Build
run: swift build