forked from ChartsOrg/Charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from danielgindi/master
Update Charts 5.0.0
- Loading branch information
Showing
367 changed files
with
1,009 additions
and
653 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
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 |
---|---|---|
@@ -1,65 +1,81 @@ | ||
name: Swift | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
iOS: | ||
runs-on: macos-latest | ||
buildFramework: | ||
name: Build framework | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: ["OS=14.4,name=iPhone 12 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"] | ||
target: | ||
- destination: "OS=16.2,name=iPhone 14 Pro" | ||
actions: "build test" | ||
- destination: "OS=16.1,name=Apple TV 4K (3rd generation)" | ||
actions: "build test" | ||
- destination: "platform=macOS" | ||
actions: "build" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: iOS - ${{ matrix.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "Charts" -destination "${{ matrix.destination }}" clean test | xcpretty | ||
- uses: actions/checkout@v3 | ||
- name: Build framework - ${{ matrix.target.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "DGCharts" -destination "${{ matrix.target.destination }}" clean ${{ matrix.target.actions }} | xcpretty | ||
|
||
tvOS: | ||
runs-on: macos-latest | ||
buildDemo: | ||
name: Build demo | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: ["OS=14.3,name=Apple TV 4K"] | ||
target: | ||
- scheme: "ChartsDemo-iOS" | ||
destination: "OS=16.2,name=iPhone 14 Pro" | ||
- scheme: "ChartsDemo-macOS" | ||
destination: "platform=macOS" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: tvOS - ${{ matrix.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "Charts" -destination "${{ matrix.destination }}" clean test | xcpretty | ||
- uses: actions/checkout@v3 | ||
- name: Build demo - ${{ matrix.target.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "${{ matrix.target.scheme }}" -destination "${{ matrix.target.destination }}" clean build | xcpretty | ||
|
||
macOS_demo: | ||
runs-on: macos-latest | ||
spm: | ||
name: Test with SPM | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: macOS | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-macOS" -destination "platform=macOS" clean build | xcpretty | ||
- uses: actions/checkout@v3 | ||
- name: SPM Test | ||
run: swift build | ||
|
||
iOS_demo: | ||
runs-on: macos-latest | ||
carthage: | ||
name: Test with carthage | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: ["OS=14.4,name=iPhone 12 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"] | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: iOS - ${{ matrix.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-iOS" -destination "${{ matrix.destination }}" clean build | xcpretty | ||
- uses: actions/checkout@v3 | ||
- name: Carthage Test | ||
run: carthage build --use-xcframeworks --no-skip-current | ||
|
||
spm: | ||
name: Test with SPM | ||
runs-on: macos-latest | ||
cocoapods: | ||
name: Test with cocoapods | ||
runs-on: macos-12 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: SPM Test | ||
run: swift build -c debug | ||
- uses: actions/checkout@v3 | ||
- name: Carthage Test | ||
run: pod lib lint |
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
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
Oops, something went wrong.