build.yml 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: CI
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. strategy:
  10. matrix:
  11. node-version: [12.x]
  12. runs-on: macOS-latest
  13. steps:
  14. - name: Check out branch
  15. uses: actions/checkout@v4
  16. - name: Swift, Objective-C - Carthage
  17. uses: actions/cache@v2
  18. with:
  19. path: Carthage
  20. key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
  21. - name: Swift, Objective-C - CocoaPods
  22. uses: actions/cache@v2
  23. with:
  24. path: Pods
  25. key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
  26. restore-keys: |
  27. ${{ runner.os }}-pods-
  28. - name: Carthage
  29. if: steps.carthage-cache.outputs.cache-hit != 'true'
  30. run: |
  31. carthage bootstrap --no-use-binaries --platform iOS --cache-builds
  32. - name: Bundle Install
  33. run: bundle install --deployment
  34. - name: Cocoapods
  35. run: bundle exec pod install