Skip to content

Commit ca9b6eb

Browse files
committed
[WIP] Added CI to check the decoding result
1 parent 8050582 commit ca9b6eb

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check the decoded images.
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Build CI Test Runner
11+
shell: bash
12+
run: |
13+
set -ex
14+
cd Example
15+
pod install --repo-update
16+
xcrun xcodebuild \
17+
-workspace SDWebImageAVIFCoder.xcworkspace \
18+
-scheme SDWebImageAVIFCoder_CITestRunner \
19+
-archivePath ./CITestRunner \
20+
archive
21+
- name: Clone test images
22+
shell: bash
23+
run: |
24+
set -ex
25+
git clone https://github.com/link-u/avif-sample-images.git
26+
- name: Decode all AVIF images
27+
shell: bash
28+
run: |
29+
set -ex
30+
cd avif-sample-images
31+
mkdir recoded
32+
CMD="../Example/CITestRunner.xcarchive/Products/usr/local/bin/SDWebImageAVIFCoder_CITestRunner"
33+
for $file in $(find . -name \*.avif); do
34+
${CMD} ${file} "./decoded/${file}.png"
35+
done

0 commit comments

Comments
 (0)