0.14.0 #199
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
# push: | |
# branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
macos_build_and_test: | |
name: Build and test on latest macOS | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build for iOS | |
run: xcodebuild -scheme Uploadcare -destination "generic/platform=iOS" | |
- name: Build for macOS | |
run: swift build -c release | |
- name: Test | |
run: UPLOADCARE_PUBLIC_KEY="${{ secrets.UPLOADCARE_PUBLIC_KEY }}" UPLOADCARE_SECRET_KEY="${{ secrets.UPLOADCARE_SECRET_KEY }}" swift test | |
ubuntu: | |
name: Build and test on latest Ubuntu | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
swift: [5.10, 5.6.3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Swift build | |
run: swift build -c release | |
- name: Swift test | |
run: UPLOADCARE_PUBLIC_KEY="${{ secrets.UPLOADCARE_PUBLIC_KEY }}" UPLOADCARE_SECRET_KEY="${{ secrets.UPLOADCARE_SECRET_KEY }}" swift test | |
carthage: | |
name: Build Carthage targets on latest macOS | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
target: ['Uploadcare', 'Uploadcare-tvOS', 'Uploadcare-macOS', 'Uploadcare-watchOS'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build Carthage target ${{matrix.target}} | |
run: xcodebuild build -project Uploadcare.xcodeproj -scheme ${{matrix.target}} -configuration Release |