Skip to content

Commit c474fa2

Browse files
committed
Updated workflow to test on macOS and iOS apart from linux
1 parent be79e4a commit c474fa2

File tree

2 files changed

+56
-25
lines changed

2 files changed

+56
-25
lines changed

.github/workflows/build_library.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Library using Swift Package Manager
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
10+
build-and-test-linux:
11+
name: Build and Test on Linux
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Source Code
15+
uses: actions/checkout@v3
16+
17+
- name: Install Swift
18+
run: |
19+
sudo apt-get update
20+
sudo apt install -y curl
21+
curl -s https://archive.swiftlang.xyz/install.sh | sudo bash
22+
sudo apt install -y swiftlang
23+
swift --version
24+
25+
- name: Build with Swift Package Manager
26+
run: swift build
27+
28+
build-and-test-macos:
29+
name: Build and Test on macOS
30+
runs-on: macos-latest
31+
steps:
32+
- name: Checkout Source Code
33+
uses: actions/checkout@v3
34+
35+
- name: Build with Xcode
36+
run: |
37+
xcodebuild \
38+
-scheme LLamaSwift \
39+
-destination platform=macOS \
40+
-derivedDataPath DerivedData \
41+
SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG
42+
43+
build-and-test-ios:
44+
name: Build and Test on iOS
45+
runs-on: macos-latest
46+
steps:
47+
- name: Checkout Source Code
48+
uses: actions/checkout@v3
49+
50+
- name: Build with Xcode
51+
run: |
52+
xcodebuild \
53+
-scheme LLamaSwift \
54+
-destination platform=iOS \
55+
-derivedDataPath DerivedData \
56+
SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG

.github/workflows/buld_library.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)