Skip to content

Clean up project

Clean up project #81

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- "*"
pull_request:
branches:
- "*"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
jobs:
build-framework:
name: Build framework
runs-on: macos-latest
strategy:
matrix:
target:
- destination: "arch=arm64,OS=26.2,name=iPhone 17 Pro"
actions: "build test"
- destination: "arch=arm64,OS=26.2,name=Apple TV 4K (3rd generation)"
actions: "build test"
- destination: "platform=macOS"
actions: "build"
steps:
- uses: actions/checkout@v6
- 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
build-demo:
name: Build demo
runs-on: macos-latest
strategy:
matrix:
target:
- scheme: "ChartsDemo-iOS"
destination: "arch=arm64,OS=26.2,name=iPhone 17 Pro"
- scheme: "ChartsDemo-macOS"
destination: "platform=macOS"
steps:
- uses: actions/checkout@v6
- 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
spm:
name: Test with SPM
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: SPM Test
run: swift build
carthage:
name: Test with carthage
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Carthage Test
run: carthage build --use-xcframeworks --no-skip-current
cocoapods:
name: Test with cocoapods
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Cocoapods Test
run: pod lib lint