소스 검색

Add a nightly build workflow (#171)

mdmathias 3 년 전
부모
커밋
bce800788f
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      .github/workflows/builds.yml

+ 28 - 0
.github/workflows/builds.yml

@@ -0,0 +1,28 @@
+name: Build GSI for Valid Architectures	
+
+on:
+  schedule:
+    - cron: '0 8 * * *' # Cron uses UTC; run at nightly at midnight PST
+
+jobs:
+  cron:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [macos-latest, macos-10.15]
+  
+    steps:
+    - uses: actions/checkout@v2
+    - name: Archive for iOS
+      run: |
+        xcodebuild \
+          archive \
+          -scheme GoogleSignIn-Package \
+          -destination "generic/platform=iOS"
+    - name: Archive for macOS
+      run: |
+        xcodebuild \
+          archive \
+          -scheme GoogleSignIn-Package \
+          -destination "platform=OS X"