-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (35 loc) · 1.02 KB
/
build.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
name: build
on:
push:
branches:
- master
- develop
jobs:
xcode:
runs-on: macOS-latest
strategy:
matrix:
destination: ['platform=macOS', 'platform=iOS Simulator,name=iPhone 8,OS=14.4']
include:
- destination: 'platform=macOS'
scheme: SwiftQuantumComputing_macOS
sdk: macosx
- destination: 'platform=iOS Simulator,name=iPhone 8,OS=14.4'
scheme: SwiftQuantumComputing_iOS
sdk: iphonesimulator
steps:
- uses: actions/checkout@v2
- name: Build & test
run: |
set -o pipefail
xcodebuild -scheme ${{ matrix.scheme }} -project SwiftQuantumComputing.xcodeproj -sdk ${{ matrix.sdk }} -destination '${{ matrix.destination }}' build test | xcpretty
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.5.2
swift:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build
- name: Run tests
run: swift test