-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (43 loc) · 1.57 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build and test
on:
# push:
# branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
macos_build_and_test:
name: Build and test on latest macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Swift build for iOS
run: swift build -c release -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios13.0-simulator"
- name: Swift build for macOS
run: swift build -c release
- name: Swift test
run: UPLOADCARE_PUBLIC_KEY="${{ secrets.UPLOADCARE_PUBLIC_KEY }}" UPLOADCARE_SECRET_KEY="${{ secrets.UPLOADCARE_SECRET_KEY }}" swift test
ubuntu:
name: Build and test on latest Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
swift: [5.9, 5.6.3]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Swift build
run: swift build -c release
- name: Swift test
run: UPLOADCARE_PUBLIC_KEY="${{ secrets.UPLOADCARE_PUBLIC_KEY }}" UPLOADCARE_SECRET_KEY="${{ secrets.UPLOADCARE_SECRET_KEY }}" swift test
carthage:
name: Build Carthage targets on latest macOS
runs-on: macos-latest
strategy:
matrix:
target: ['Uploadcare', 'Uploadcare-tvOS', 'Uploadcare-macOS', 'Uploadcare-watchOS']
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build Carthage target ${{matrix.target}}
run: xcodebuild build -project Uploadcare.xcodeproj -scheme ${{matrix.target}} -configuration Release