Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: CI

on:
push:
branches: [master]
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches: [master]
paths-ignore:
- '**.md'
- 'docs/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test (iOS)
runs-on: macos-15
steps:
- uses: actions/checkout@v4

- name: Install pods
working-directory: Example
run: pod install

- name: Pick an iOS simulator
id: simulator
run: |
UDID=$(xcrun simctl list devices available --json | python3 -c '
import json, sys
for runtime, devices in json.load(sys.stdin)["devices"].items():
if "iOS" not in runtime:
continue
for device in devices:
if "iPhone" in device["name"]:
print(device["udid"])
raise SystemExit
raise SystemExit("no iPhone simulator available")
')
echo "udid=$UDID" >> "$GITHUB_OUTPUT"

- name: Test
working-directory: Example
run: |
xcodebuild test \
-workspace CachingPlayerItem.xcworkspace \
-scheme CachingPlayerItem-Example \
-destination "id=${{ steps.simulator.outputs.udid }}"

build:
name: Build (${{ matrix.platform }})
runs-on: macos-15
strategy:
fail-fast: false
matrix:
include:
- platform: macOS
destination: platform=macOS
- platform: tvOS
destination: generic/platform=tvOS Simulator
- platform: visionOS
destination: generic/platform=visionOS Simulator
steps:
- uses: actions/checkout@v4

- name: Build
run: |
xcodebuild -quiet \
-scheme CachingPlayerItem \
-destination '${{ matrix.destination }}'
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
## User settings
xcuserdata/

## macOS
.DS_Store

## Xcode
DerivedData/

## Swift Package Manager
.build/
.swiftpm/
5 changes: 4 additions & 1 deletion CachingPlayerItem.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Pod::Spec.new do |s|
s.documentation_url = 'https://sukov.github.io/CachingPlayerItem/'

s.swift_version = '5.0'
s.ios.deployment_target = '10.0'
s.ios.deployment_target = '13.4'
s.osx.deployment_target = '10.15.4'
s.tvos.deployment_target = '13.4'
s.visionos.deployment_target = '1.0'

s.source_files = 'Source/*.swift'

Expand Down
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
CachingPlayerItem: b295ac21229739016125e262f84d9e6caf845cb1
CachingPlayerItem: 8a941cfd7a9d54654da71890ce17617667699071
CwlCatchException: 7acc161b299a6de7f0a46a6ed741eae2c8b4d75a
CwlCatchExceptionSupport: 54ccab8d8c78907b57f99717fb19d4cc3bce02dc
CwlMachBadInstructionHandler: dae4fdd124d45c9910ac240287cc7b898f4502a1
Expand Down
5 changes: 4 additions & 1 deletion Example/Pods/Local Podspecs/CachingPlayerItem.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

828 changes: 418 additions & 410 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Loading
Loading