-
Notifications
You must be signed in to change notification settings - Fork 954
54 lines (50 loc) · 1.33 KB
/
ios_build_tests.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
name: '[ios] build tests'
on:
pull_request:
branches:
- master
- main
paths:
- 'ios/**'
- 'core/**'
- 'hippy.podspec'
- 'examples/ios-demo/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ios_build_tests:
runs-on: macos-latest
strategy:
matrix:
type: [debug, release]
include:
- type: debug
configuration: Debug
- type: release
configuration: Release
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
lfs: true
- name: Build
run: |
pushd examples/ios-demo
pod install
xcodebuild -workspace 'HippyDemo.xcworkspace' -list | \
sed -n '/Schemes/,/^$/p' | \
grep -v "Schemes:" | \
grep -v '^\s*$' | \
while read scheme; do
echo "Building ${scheme}…"
xcodebuild build \
-destination "generic/platform=iOS" \
-workspace "HippyDemo.xcworkspace" \
-scheme "${scheme}" \
-configuration "${{ matrix.configuration }}" \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
done
popd