Skip to content

Commit c5c08d9

Browse files
committed
Update the travis CI script and readme
1 parent 542efa8 commit c5c08d9

File tree

2 files changed

+48
-12
lines changed

2 files changed

+48
-12
lines changed

.travis.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
1-
# references:
2-
# * https://www.objc.io/issues/6-build-tools/travis-ci/
3-
# * https://github.com/supermarin/xcpretty#usage
4-
5-
osx_image: xcode7.3
61
language: objective-c
7-
# cache: cocoapods
8-
# podfile: Example/Podfile
9-
# before_install:
10-
# - gem install cocoapods # Since Travis is not always on latest version
11-
# - pod install --project-directory=Example
2+
osx_image: xcode9.4
3+
4+
env:
5+
global:
6+
- LC_CTYPE=en_US.UTF-8
7+
- LANG=en_US.UTF-8
8+
9+
addons:
10+
ssh_known_hosts: github.com
11+
12+
notifications:
13+
email: false
14+
15+
before_install:
16+
- env
17+
- locale
18+
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
19+
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
20+
- pod --version
21+
- pod setup --silent > /dev/null
22+
- pod repo update --silent
23+
- xcpretty --version
24+
- xcodebuild -version
25+
- xcodebuild -showsdks
26+
1227
script:
13-
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme SDWebImageAVIFCoder-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14-
- pod lib lint
28+
- set -o pipefail
29+
30+
- echo Check if the library described by the podspec can be built
31+
# Run full subspecs linting consuming too much of build time because CocoaPods use source code of Pods
32+
# Since`libx265` && `libde265` is Pod and have their own linting, don't waste time to lint full subspecs combination
33+
- pod lib lint --use-libraries --allow-warnings --no-subspecs --fail-fast
34+
35+
- echo Build example
36+
- pod install --project-directory=Example
37+
- xcodebuild build -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme 'SDWebImageAVIFCoder-Example' -sdk iphonesimulator -destination 'name=iPhone 8' -configuration Debug | xcpretty -c
38+
- xcodebuild build -workspace Example/SDWebImageAVIFCoder.xcworkspace -scheme 'SDWebImageAVIFCoder-Example macOS' -sdk macosx -configuration Debug | xcpretty -c

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ it, simply add the following line to your Podfile:
3535
pod 'SDWebImageAVIFCoder'
3636
```
3737

38+
Note: Current `libaom` dependency via CocoaPods, use the pre-built static library for each architecutre.
39+
40+
The reason of this it's that we want to use SIMD/SSE/AVX2 CPU instruction optimization for each platforms. However libaom does not using dynamic CPU detection for Apple's platforms. We need the upstream to support it.
41+
42+
At the same time, CocoaPods does not allow you to write a framework contains so much of architecture detection (for example, iPhone Simulator is x86_x64, however, iPhone is ARM, they should use different assembly files). So we use the pre-built one instead.
43+
44+
If you're using `use_frameworks!` in Podfile, you can check it with static framework instead.
45+
46+
```
47+
pod 'SDWebImageAVIFCoder', :modular_headers => true
48+
```
49+
3850
#### Carthage
3951

4052
SDWebImageAVIFCoder is available through [Carthage](https://github.com/Carthage/Carthage).

0 commit comments

Comments
 (0)