Skip to content

Commit

Permalink
Updated workflow to test on macOS and iOS apart from linux
Browse files Browse the repository at this point in the history
  • Loading branch information
srgtuszy committed Oct 15, 2024
1 parent be79e4a commit c474fa2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 25 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build_library.yml
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
25 changes: 0 additions & 25 deletions .github/workflows/buld_library.yml

This file was deleted.

0 comments on commit c474fa2

Please sign in to comment.