forked from bozaigao/ZipArchive
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.67 KB
/
Copy pathgha.yml
File metadata and controls
52 lines (50 loc) · 1.67 KB
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
name: CI
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master
tags:
- '*'
jobs:
macos:
runs-on: ${{matrix.OS}}
strategy:
fail-fast: false
matrix:
OS: [macos-latest]
SDK: ["macosx", "appletvsimulator", "iphonesimulator"]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
pushd Example
pod install
popd
- name: Build and test
run: |
echo "Disabling modern build system as a workaround for target issue in Xcode 10+"
USEMODERNBUILDSYSTEM="-UseModernBuildSystem=NO"
if [ ${{ matrix.SDK }} == "macosx" ]; then
SCHEME="ObjectiveCExample_macOS"
SDK="macosx"
DESTINATION="platform=macosx"
fi
if [ ${{ matrix.SDK }} == "appletvsimulator" ]; then
SCHEME="ObjectiveCExample_tvOS"
SDK="appletvsimulator"
PLATFORM="tvOS Simulator"
DEVICE="APPLE TV 4K (at 1080p)"
DESTINATION="platform=$PLATFORM,name=$DEVICE"
fi
if [ ${{ matrix.SDK }} == "iphonesimulator" ]; then
SCHEME="ObjectiveCExample_iOS"
SDK="iphonesimulator"
PLATFORM="iOS Simulator"
DEVICE="iPhone 11 Pro Max"
DESTINATION="platform=$PLATFORM,name=$DEVICE"
fi
# build and test
CONFIGURATION="Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES"
xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -sdk $SDK -destination "$DESTINATION" -configuration $CONFIGURATION $USEMODERNBUILDSYSTEM test