Fixed issues with string conversions and llama module import #2
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
name: Build Library | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build-linux: | |
name: Build on Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
- name: Install Swift | |
run: | | |
sudo apt-get update | |
sudo apt install -y curl | |
curl -s https://archive.swiftlang.xyz/install.sh | sudo bash | |
sudo apt install -y swiftlang | |
swift --version | |
- name: Build with Swift Package Manager | |
run: swift build | |
build-macos: | |
name: Build on macOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
- name: Build with Xcode | |
run: | | |
xcodebuild \ | |
-scheme LLamaSwift \ | |
-destination platform=macOS \ | |
-derivedDataPath DerivedData \ | |
SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG | |
build-ios: | |
name: Build on iOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
- name: Build with Xcode | |
run: | | |
xcodebuild \ | |
-scheme LLamaSwift \ | |
-destination platform=iOS \ | |
-derivedDataPath DerivedData \ | |
SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG |