-
Notifications
You must be signed in to change notification settings - Fork 53
34 lines (33 loc) · 1.05 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
name: build
on:
push:
pull_request:
jobs:
macos:
strategy:
fail-fast: false
matrix:
macos:
- 11
- 13
xcode:
- latest-stable
runs-on: macos-${{ matrix.macos }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: |
xcodebuild -scheme "Euclid" -sdk macosx clean build test -enableCodeCoverage YES -derivedDataPath Build/
cd Build/Build/ProfileData
cd $(ls -d */|head -n 1)
directory=${PWD##*/}
pathCoverage=Build/Build/ProfileData/${directory}/Coverage.profdata
cd ../../../../
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug/Euclid.framework/Euclid > info.lcov
- name: Codecov
uses: codecov/codecov-action@v2
with:
# the token is optional for a public repo, but including it anyway
token: 2abe208f-c7d5-4c0d-aaf7-fa6994f1a78e
env_vars: MD_APPLE_SDK_ROOT,RUNNER_OS,RUNNER_ARCH