Skip to content

Add a basic CLI tool for TTS generation #19

Add a basic CLI tool for TTS generation

Add a basic CLI tool for TTS generation #19

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Run Tests
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest'
- name: Install Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Clean build folder
run: xcodebuild clean -scheme MLXAudio-Package -destination 'platform=macOS'
- name: Build
run: xcodebuild build-for-testing -scheme MLXAudio-Package -destination 'platform=macOS' MACOSX_DEPLOYMENT_TARGET=14.0 CODE_SIGNING_ALLOWED=NO
- name: Test Codecs
run: xcodebuild test-without-building -scheme MLXAudio-Package -destination 'platform=macOS' -only-testing:MLXAudioTests/MLXAudioCodecsTests CODE_SIGNING_ALLOWED=NO
- name: Test TTS
run: xcodebuild test-without-building -scheme MLXAudio-Package -destination 'platform=macOS' -only-testing:MLXAudioTests/MLXAudioTTSTests CODE_SIGNING_ALLOWED=NO