-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated workflow to test on macOS and iOS apart from linux
- Loading branch information
Showing
2 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build Library using Swift Package Manager | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
|
||
build-and-test-linux: | ||
name: Build and Test 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-and-test-macos: | ||
name: Build and Test 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-and-test-ios: | ||
name: Build and Test 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 |
This file was deleted.
Oops, something went wrong.