Skip to content
Merged
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/
7 changes: 5 additions & 2 deletions CachingPlayerItem.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CachingPlayerItem'
s.version = '2.2.0'
s.version = '2.3.0'
s.summary = 'Cache & Play audio and video files'

s.homepage = 'https://github.com/sukov/CachingPlayerItem'
Expand All @@ -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
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- CachingPlayerItem (2.2.0)
- CachingPlayerItem (2.3.0)
- CwlCatchException (2.2.1):
- CwlCatchExceptionSupport (~> 2.2.1)
- CwlCatchExceptionSupport (2.2.1)
Expand Down Expand Up @@ -33,7 +33,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
CachingPlayerItem: b295ac21229739016125e262f84d9e6caf845cb1
CachingPlayerItem: 9ac35e40bb02066916dd8721b2e7a5cf89fcf0dd
CwlCatchException: 7acc161b299a6de7f0a46a6ed741eae2c8b4d75a
CwlCatchExceptionSupport: 54ccab8d8c78907b57f99717fb19d4cc3bce02dc
CwlMachBadInstructionHandler: dae4fdd124d45c9910ac240287cc7b898f4502a1
Expand Down
9 changes: 6 additions & 3 deletions Example/Pods/Local Podspecs/CachingPlayerItem.podspec.json

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

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

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

Loading
Loading