Skip to content

Commit

Permalink
Set up a GitHub workflow for Preternatural/AI (#2)
Browse files Browse the repository at this point in the history
* Set up a GitHub workflow for Preternatural/AI

* Update swift.yml

* Update swift.yml

* Update swift.yml

* Update README.md

* Update swift.yml

* Update swift.yml

* Update swift.yml

* Basic Version

* Basic v4

* Different OS Version

* Update swift.yml

* Update swift.yml

* Split

* swift build

* changed platform

* Update swift.yml

* Removed Ubuntu

* Update swift.yml

* Update swift.yml

* Update swift.yml

* swift build (Fails due to Swallow)

* Swift version

* Xcode version

* 15.1

* Lighty Example

* Update swift.yml

* Update swift.yml

* Update swift.yml

* Update swift.yml

* Earendil

* Update Macos Version

* Removed scheme

* Przemek Jablonski

* Original

* Update swift.yml

* Xcode

* Update swift.yml

* SwiftLint

* Update swift.yml

* Update swift.yml

* Version change

* Update swift.yml

* Update swift.yml

* Skip Macro

* Update swift.yml
  • Loading branch information
Archetapp authored Feb 27, 2024
1 parent 0513876 commit b06493f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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: Build all  platforms

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: 0 0 * * *

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_and_test:
name: ${{ matrix.command }} on  ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }})
runs-on: ${{ matrix.macos }}
strategy:
fail-fast: false
matrix:
xcode: ['15.2']
macos: ['macos-13']
scheme: ['AI']
command: ['build']
platform: ['macOS'] # ADD 'iOS', 'tvOS', 'watchOS'
steps:
- name: Switch xcode to ${{ matrix.xcode }}
uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: ${{ matrix.xcode }}
- name: Double-check macOS version (${{ matrix.macos }})
run: sw_vers
- name: Code Checkout
uses: actions/checkout@v2
- name: Check xcodebuild version
run: xcodebuild -version
- name: Check xcode embedded SDKs
run: xcodebuild -showsdks
- name: Show buildable schemes
run: xcodebuild -list
- name: Show eligible build destinations for ${{ matrix.scheme }}
run: xcodebuild -showdestinations -scheme ${{ matrix.scheme }}
- name: Skip Macro Validation
run: defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
- uses: mxcl/xcodebuild@v2.0.0
with:
platform: ${{ matrix.platform }}
scheme: ${{ matrix.scheme }}
action: ${{ matrix.command }}
code-coverage: true
verbosity: xcpretty
upload-logs: always
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
> [!IMPORTANT]
> This package is presently in its alpha stage of development
[![Swift](https://github.com/PreternaturalAI/AI/actions/workflows/swift.yml/badge.svg)](https://github.com/PreternaturalAI/AI/actions/workflows/swift.yml)

# AI

The definitive, open-source Swift framework for interfacing with generative AI.
Expand Down

0 comments on commit b06493f

Please sign in to comment.