Skip to content

Commit

Permalink
Build all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Apr 7, 2021
1 parent 834f1ad commit 5671945
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,32 @@ on:
push:
branches: [ actions ]
jobs:

build:
name: Build
runs-on: macos-latest
strategy:
matrix:
run-config:
- { scheme: 'OCHamcrest-iOS', -sdk: 'iphonesimulator', destination: 'platform=iOS Simulator,OS=latest,name=iPhone 8' }
- { scheme: 'OCHamcrest-tvOS', -sdk: 'appletvsimulator', destination: 'platform=tvOS Simulator,OS=latest,name=Apple TV' }
- { scheme: 'OCHamcrest-watchOS', -sdk: 'watchsimulator', destination: 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 5 - 44mm' }
steps:
- name: Check out project
uses: actions/checkout@v2
- name: Show current version of Xcode
run: xcode-select -p
- name: Show Build Settings
run: xcodebuild -project Source/OCHamcrest.xcodeproj -scheme '${{ matrix.run-config['scheme'] }}' -showBuildSettings
- name: Show Build SDK
run: xcodebuild -project Source/OCHamcrest.xcodeproj -scheme '${{ matrix.run-config['scheme'] }}' -showsdks
- name: Show Available Destinations
run: xcodebuild -project Source/OCHamcrest.xcodeproj -scheme '${{ matrix.run-config['scheme'] }}' -showdestinations
- name: Build
run: xcodebuild clean build -project Source/OCHamcrest.xcodeproj -scheme '${{ matrix.run-config['scheme'] }}' -sdk '${{ matrix.run-config['sdk'] }}' -destination '${{ matrix.run-config['destination'] }}' -showBuildTimingSummary

test:
name: Test
runs-on: macos-latest
steps:
- name: Check out project
Expand Down
1 change: 0 additions & 1 deletion .slather.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ xcodeproj: ./Source/OCHamcrest.xcodeproj
scheme: OCHamcrest
ignore:
- Source/Tests/*

0 comments on commit 5671945

Please sign in to comment.