-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try different approach for builds
- Loading branch information
1 parent
bd125fe
commit 5c2f265
Showing
1 changed file
with
24 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,34 @@ on: [push, pull_request] | |
jobs: | ||
mac-test: | ||
name: Mac Test | ||
runs-on: macOS-latest | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- platform: macOS | ||
scheme: "SWXMLHash OSX" | ||
- platform: iOS | ||
scheme: "SWXMLHash iOS" | ||
- platform: tvOS | ||
scheme: "SWXMLHash tvOS" | ||
- platform: watchOS | ||
scheme: "SWXMLHash watchOS" | ||
|
||
swift: | ||
- ~5.4 | ||
- ^6 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build and test | ||
env: | ||
WORKSPACE: "-workspace SWXMLHash.xcworkspace" | ||
ACTION: "build-for-testing test-without-building" | ||
run: | | ||
set -o pipefail | ||
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash OSX" | xcpretty | ||
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash iOS" -sdk iphonesimulator -destination "OS=17.2,name=iPhone 15" | xcpretty | ||
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash tvOS" -sdk appletvsimulator -destination "name=Apple TV" | xcpretty | ||
xcodebuild build $WORKSPACE -scheme "SWXMLHash watchOS" -sdk watchsimulator | xcpretty | ||
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '16.0-beta' | ||
|
||
- uses: mxcl/[email protected] | ||
with: | ||
platform: ${{ matrix.platform }} | ||
workspace: "SWXMLHash.xcworkspace" | ||
|
||
linux-test: | ||
name: Linux Test | ||
|