File tree Expand file tree Collapse file tree 2 files changed +56
-25
lines changed Expand file tree Collapse file tree 2 files changed +56
-25
lines changed Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments