forked from bilibili/ijkplayer
-
Notifications
You must be signed in to change notification settings - Fork 21
69 lines (66 loc) · 2.19 KB
/
apple.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: IJKMediaPlayerKit
on:
# push:
# branches: [master]
# pull_request:
# branches: [master]
workflow_dispatch:
jobs:
build:
name: Analyse-Publish
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Read Tag Version
run: |
grep -m 1 VERSION_NAME= version.sh | awk -F = '{printf "TAG=%s",$2}' | xargs > constants.env
cat constants.env
- name: Export Env
uses: cardinalby/export-env-action@v2
with:
envFile: 'constants.env'
- run: brew install tree
- name: Download Pre Compiled Dependencies
run: |
./FFToolChain/main.sh install -p ios -l 'ass ffmpeg'
./FFToolChain/main.sh install -p macos -l 'ass ffmpeg'
./FFToolChain/main.sh install -p tvos -l 'ass ffmpeg'
- name: Pod Install
run: |
pod install --project-directory=examples/ios
pod install --project-directory=examples/macos
pod install --project-directory=examples/tvos
- name: Build iOS Framework
run: cd examples/ios && ./build-framework.sh
- name: Build macOS Framework
run: cd examples/macos && ./build-framework.sh
- name: Build tvOS Framework
run: cd examples/tvos && ./build-framework.sh
- name: Make xcframework
run: cd examples/xcframewrok && ./make-xcframework.sh
- name: Make podspec
run: cd examples/xcframewrok && ./make-podspec.sh
- name: Zip Frameworks
run: |
draft=FFToolChain/build/draft
dist=FFToolChain/build/dist
mkdir -p $draft
mkdir -p $dist
cp CHANGELOG.md $draft
cp README.md $draft
cp COPYING.LGPLv2.1 $draft
cp -pPR examples/xcframewrok/IJKMediaPlayerKit.xcframework $draft
cd $draft
mv COPYING.LGPLv2.1 LICENSE
zip -ryq IJKMediaPlayerKit.zip ./*
cd -
mv $draft/IJKMediaPlayerKit.zip $dist
mv examples/xcframewrok/IJKMediaPlayerKit.spec.json $dist
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create k${{ env.TAG }} -p -t "👏👏 IJKMediaPlayerKit k${{ env.TAG }}" FFToolChain/build/dist/*.*