Skip to content

Commit efe6e46

Browse files
committed
update ci
1 parent 8e7ab7e commit efe6e46

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
runs-on: macos-latest
16+
17+
steps:
18+
- name: check out repository
19+
uses: actions/checkout@v4
20+
21+
- name: select iOS simulator
22+
id: simulator
23+
shell: bash
24+
run: |
25+
set -euo pipefail
26+
27+
destination_id="$({
28+
xcodebuild -showdestinations -scheme FDWaveformView 2>/dev/null |
29+
grep 'platform:iOS Simulator' |
30+
grep 'name:iPhone' |
31+
head -n 1 |
32+
sed -E 's/.*id:([^,}]+).*/\1/'
33+
})"
34+
35+
if [[ -z "$destination_id" ]]; then
36+
echo "No iOS simulator destination found for scheme FDWaveformView" >&2
37+
exit 1
38+
fi
39+
40+
echo "destination=id=$destination_id" >> "$GITHUB_OUTPUT"
41+
42+
- name: build and test
43+
run: xcodebuild test -scheme FDWaveformView -destination "${{
44+
steps.simulator.outputs.destination }}"

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# FDWaveformView
22

3+
[![ci](https://github.com/fulldecent/FDWaveformView/actions/workflows/ci.yml/badge.svg)](https://github.com/fulldecent/FDWaveformView/actions/workflows/ci.yml)
4+
35
FDWaveformView displays audio waveforms in Swift apps so users can preview audio, scrub, and pick positions with ease.
46

7+
**:hatching_chick: Virtual tip jar: <https://amazon.com/hz/wishlist/ls/EE78A23EEGQB>**
8+
59
## Usage
610

711
Add an `FDWaveformView` programmatically, then load audio. If your file is missing an extension, see the [Stack Overflow answer on AVURLAsset without extensions](https://stackoverflow.com/questions/9290972/is-it-possible-to-make-avurlasset-work-without-a-file-extension).
@@ -65,8 +69,8 @@ UIView.animate(withDuration: 0.3) {
6569

6670
- Antialiased waveforms draw extra pixels to avoid jagged edges.
6771
- Autolayout-driven size changes trigger re-rendering to prevent pixelation.
68-
- Supports iOS 15+ and visionOS 1.0+.
69-
- Includes unit tests running on GitHub Actions.
72+
- Supports iOS 12+ and Swift 5.
73+
- Includes unit tests that run on GitHub Actions.
7074

7175
## Installation
7276

0 commit comments

Comments
 (0)