Pārlūkot izejas kodu

Fix android build, add ios build

Janic Duplessis 4 gadus atpakaļ
vecāks
revīzija
850c344952
1 mainītis faili ar 22 papildinājumiem un 1 dzēšanām
  1. 22
    1
      .github/workflows/ci.yml

+ 22
- 1
.github/workflows/ci.yml Parādīt failu

@@ -30,4 +30,25 @@ jobs:
30 30
       - name: Install dependencies
31 31
         run: yarn install
32 32
       - name: Build android example app
33
-        run: cd example/android && ./gradlew assembleRelease
33
+        run: cd example/android && ./gradlew assembleDebug
34
+    ios-build:
35
+      runs-on: macOS-latest
36
+      steps:
37
+        - uses: actions/checkout@v1
38
+        - name: Use Node.js 12.x
39
+          uses: actions/setup-node@v1
40
+          with:
41
+            node-version: 12.x
42
+        - uses: actions/setup-ruby@v1
43
+          with:
44
+            ruby-version: '2.x'
45
+        - name: Install cocoapods
46
+          run: gem install cocoapods
47
+        - name: Install yarn
48
+          run: npm install -g yarn
49
+        - name: Install dependencies
50
+          run: yarn install
51
+        - name: Install pods
52
+          run: cd example/ios && pod install
53
+        - name: Build ios example app
54
+          run: cd example/ios && xcodebuild -scheme SafeAreaViewExample -workspace SafeAreaViewExample.xcworkspace ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -configuration Debug