Skip to content

Commit ababede

Browse files
committed
add workflows
1 parent 6df70b2 commit ababede

File tree

8 files changed

+151
-47
lines changed

8 files changed

+151
-47
lines changed

.github/workflows/publish-ijk-release.yml renamed to .github/workflows/bluray.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
pull_request:
66
branches: [master]
77

8-
name: Create Release (IJK Edition)
8+
name: Create bluray Release
99

1010
jobs:
1111
build:
12-
name: compile libs then deploy
13-
runs-on: macos-latest
12+
name: compile bluray then deploy
13+
runs-on: macos-13
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
@@ -20,15 +20,15 @@ jobs:
2020
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
2121
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
2222
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
23-
grep IJK_VERSION= version.sh | awk -v d="$d" -F = '{printf "RELEASE_VERSION=%s-%s",$2,d}' | xargs > constants.env
24-
echo 'EDITION=ijk' >> constants.env
23+
grep GIT_BLURAY_VERSION= ./init-cfgs/bluray | awk -F = '{printf "RELEASE_VERSION=%s",$2}' | xargs > constants.env
24+
echo "RELEASE_DATE=$d" >> constants.env
2525
cat constants.env
2626
- name: Export Env
2727
uses: cardinalby/export-env-action@v2
2828
with:
2929
envFile: 'constants.env'
30-
- name: init all libs
31-
run: ./init-any.sh all
30+
- name: init src
31+
run: ./init-any.sh all bluray
3232
- name: generate src log
3333
run: |
3434
cd build/src/macos
@@ -38,13 +38,13 @@ jobs:
3838
- name: do compile macos libs
3939
run: |
4040
cd macos
41-
./compile-any.sh build
42-
./compile-any.sh lipo
41+
./compile-any.sh build bluray
42+
./compile-any.sh lipo bluray
4343
- name: do compile ios libs
4444
run: |
4545
cd ios
46-
./compile-any.sh build
47-
./compile-any.sh lipo
46+
./compile-any.sh build bluray
47+
./compile-any.sh lipo bluray
4848
- name: Zip macos libs
4949
run: |
5050
cd build/product/macos/universal
@@ -53,14 +53,14 @@ jobs:
5353
run: |
5454
cd build/product/ios/universal
5555
zip -rq ios-universal.zip ./*
56-
- name: Create ${{ env.EDITION }} Release
56+
- name: Create Release
5757
id: create_release
5858
uses: actions/create-release@v1
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161
with:
62-
tag_name: ${{ env.RELEASE_VERSION }}-${{ env.EDITION }}
63-
release_name: Release ${{ env.RELEASE_VERSION }}-${{ env.EDITION }}
62+
tag_name: bluray-${{ env.RELEASE_VERSION }}-${{ env.RELEASE_DATE }}
63+
release_name: bluray-${{ env.RELEASE_VERSION }}
6464
draft: false
6565
prerelease: false
6666
- name: Upload macos Release Asset
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
7272
asset_path: build/product/macos/universal/macos-universal.zip
73-
asset_name: "macos-universal-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.zip"
73+
asset_name: "macos-universal-${{ env.RELEASE_VERSION }}.zip"
7474
asset_content_type: application/zip
7575
- name: Upload ios Release Asset
7676
uses: actions/upload-release-asset@v1
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
8181
asset_path: build/product/ios/universal/ios-universal.zip
82-
asset_name: "ios-universal-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.zip"
82+
asset_name: "ios-universal-${{ env.RELEASE_VERSION }}.zip"
8383
asset_content_type: application/zip
8484
- name: Upload macos src md
8585
uses: actions/upload-release-asset@v1
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
9090
asset_path: build/src/macos-src-log.md
91-
asset_name: "macos-src-log-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.md"
91+
asset_name: "macos-src-log-${{ env.RELEASE_VERSION }}.md"
9292
asset_content_type: application/text
9393
- name: Upload ios src md
9494
uses: actions/upload-release-asset@v1
@@ -97,5 +97,5 @@ jobs:
9797
with:
9898
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
9999
asset_path: build/src/ios-src-log.md
100-
asset_name: "ios-src-log-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.md"
101-
asset_content_type: application/text
100+
asset_name: "ios-src-log-${{ env.RELEASE_VERSION }}.md"
101+
asset_content_type: application/text

.github/workflows/publish-github-release.yml renamed to .github/workflows/dav1d.yml

+19-20
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
pull_request:
66
branches: [master]
77

8-
name: Create Release (Github Edition)
8+
name: Create dav1d Release
99

1010
jobs:
1111
build:
12-
name: compile libs then deploy
13-
runs-on: macos-latest
12+
name: compile dav1d then deploy
13+
runs-on: macos-13
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
@@ -20,16 +20,15 @@ jobs:
2020
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
2121
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
2222
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
23-
grep IJK_VERSION= version.sh | awk -v d="$d" -F = '{printf "RELEASE_VERSION=%s-%s",$2,d}' | xargs > constants.env
24-
echo 'EDITION=github' >> constants.env
23+
grep GIT_DAV1D_VERSION= ./init-cfgs/dav1d | awk -F = '{printf "RELEASE_VERSION=%s",$2}' | xargs > constants.env
24+
echo "RELEASE_DATE=$d" >> constants.env
2525
cat constants.env
2626
- name: Export Env
2727
uses: cardinalby/export-env-action@v2
2828
with:
2929
envFile: 'constants.env'
30-
- run: |
31-
export SKIP_FFMPEG_PATHCHES=1
32-
./init-any.sh all
30+
- name: init src
31+
run: ./init-any.sh all dav1d
3332
- name: generate src log
3433
run: |
3534
cd build/src/macos
@@ -39,13 +38,13 @@ jobs:
3938
- name: do compile macos libs
4039
run: |
4140
cd macos
42-
./compile-any.sh build
43-
./compile-any.sh lipo
41+
./compile-any.sh build dav1d
42+
./compile-any.sh lipo dav1d
4443
- name: do compile ios libs
4544
run: |
4645
cd ios
47-
./compile-any.sh build
48-
./compile-any.sh lipo
46+
./compile-any.sh build dav1d
47+
./compile-any.sh lipo dav1d
4948
- name: Zip macos libs
5049
run: |
5150
cd build/product/macos/universal
@@ -54,14 +53,14 @@ jobs:
5453
run: |
5554
cd build/product/ios/universal
5655
zip -rq ios-universal.zip ./*
57-
- name: Create ${{ env.EDITION }} Release
56+
- name: Create Release
5857
id: create_release
5958
uses: actions/create-release@v1
6059
env:
6160
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6261
with:
63-
tag_name: ${{ env.RELEASE_VERSION }}-${{ env.EDITION }}
64-
release_name: Release ${{ env.RELEASE_VERSION }}-${{ env.EDITION }}
62+
tag_name: dav1d-${{ env.RELEASE_VERSION }}-${{ env.RELEASE_DATE }}
63+
release_name: dav1d-${{ env.RELEASE_VERSION }}
6564
draft: false
6665
prerelease: false
6766
- name: Upload macos Release Asset
@@ -71,7 +70,7 @@ jobs:
7170
with:
7271
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
7372
asset_path: build/product/macos/universal/macos-universal.zip
74-
asset_name: "macos-universal-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.zip"
73+
asset_name: "macos-universal-${{ env.RELEASE_VERSION }}.zip"
7574
asset_content_type: application/zip
7675
- name: Upload ios Release Asset
7776
uses: actions/upload-release-asset@v1
@@ -80,7 +79,7 @@ jobs:
8079
with:
8180
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
8281
asset_path: build/product/ios/universal/ios-universal.zip
83-
asset_name: "ios-universal-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.zip"
82+
asset_name: "ios-universal-${{ env.RELEASE_VERSION }}.zip"
8483
asset_content_type: application/zip
8584
- name: Upload macos src md
8685
uses: actions/upload-release-asset@v1
@@ -89,7 +88,7 @@ jobs:
8988
with:
9089
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
9190
asset_path: build/src/macos-src-log.md
92-
asset_name: "macos-src-log-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.md"
91+
asset_name: "macos-src-log-${{ env.RELEASE_VERSION }}.md"
9392
asset_content_type: application/text
9493
- name: Upload ios src md
9594
uses: actions/upload-release-asset@v1
@@ -98,5 +97,5 @@ jobs:
9897
with:
9998
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
10099
asset_path: build/src/ios-src-log.md
101-
asset_name: "ios-src-log-${{ env.RELEASE_VERSION }}-${{ env.EDITION }}.md"
102-
asset_content_type: application/text
100+
asset_name: "ios-src-log-${{ env.RELEASE_VERSION }}.md"
101+
asset_content_type: application/text

.github/workflows/openssl.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
pull_request:
66
branches: [master]
77

8-
name: Create OpenSSl Release
8+
name: Create openssl Release
99

1010
jobs:
1111
build:
12-
name: compile OpenSSl then deploy
12+
name: compile openssl then deploy
1313
runs-on: macos-13
1414
steps:
1515
- name: Checkout code
@@ -20,7 +20,8 @@ jobs:
2020
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
2121
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
2222
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
23-
grep GIT_OPENSSL_VERSION= ./init-cfgs/openssl | awk -v d="$d" -F = '{printf "RELEASE_VERSION=%s-%s",$2,d}' | xargs > constants.env
23+
grep GIT_OPENSSL_VERSION= ./init-cfgs/openssl | awk -F = '{printf "RELEASE_VERSION=%s",$2}' | xargs > constants.env
24+
echo "RELEASE_DATE=$d" >> constants.env
2425
cat constants.env
2526
- name: Export Env
2627
uses: cardinalby/export-env-action@v2
@@ -58,8 +59,8 @@ jobs:
5859
env:
5960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6061
with:
61-
tag_name: ${{ env.RELEASE_VERSION }}
62-
release_name: Release ${{ env.RELEASE_VERSION }}
62+
tag_name: openssl-${{ env.RELEASE_VERSION }}-${{ env.RELEASE_DATE }}
63+
release_name: openssl-${{ env.RELEASE_VERSION }}
6364
draft: false
6465
prerelease: false
6566
- name: Upload macos Release Asset

.github/workflows/opus.yml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
on:
2+
# push:
3+
# branches: [master]
4+
workflow_dispatch:
5+
pull_request:
6+
branches: [master]
7+
8+
name: Create opus Release
9+
10+
jobs:
11+
build:
12+
name: compile opus then deploy
13+
runs-on: macos-13
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
- name: Read Tag Version
18+
run: |
19+
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
20+
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs > constants.env
21+
# git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs > constants.env
22+
d=$(TZ=UTC-8 date +'%y%m%d%H%M%S')
23+
grep GIT_OPUS_VERSION= ./init-cfgs/opus | awk -F = '{printf "RELEASE_VERSION=%s",$2}' | xargs > constants.env
24+
echo "RELEASE_DATE=$d" >> constants.env
25+
cat constants.env
26+
- name: Export Env
27+
uses: cardinalby/export-env-action@v2
28+
with:
29+
envFile: 'constants.env'
30+
- name: init src
31+
run: ./init-any.sh all opus
32+
- name: generate src log
33+
run: |
34+
cd build/src/macos
35+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
36+
cd ../ios
37+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
38+
- name: do compile macos libs
39+
run: |
40+
cd macos
41+
./compile-any.sh build opus
42+
./compile-any.sh lipo opus
43+
- name: do compile ios libs
44+
run: |
45+
cd ios
46+
./compile-any.sh build opus
47+
./compile-any.sh lipo opus
48+
- name: Zip macos libs
49+
run: |
50+
cd build/product/macos/universal
51+
zip -rq macos-universal.zip ./*
52+
- name: Zip ios libs
53+
run: |
54+
cd build/product/ios/universal
55+
zip -rq ios-universal.zip ./*
56+
- name: Create Release
57+
id: create_release
58+
uses: actions/create-release@v1
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
with:
62+
tag_name: opus-${{ env.RELEASE_VERSION }}-${{ env.RELEASE_DATE }}
63+
release_name: opus-${{ env.RELEASE_VERSION }}
64+
draft: false
65+
prerelease: false
66+
- name: Upload macos Release Asset
67+
uses: actions/upload-release-asset@v1
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
with:
71+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
72+
asset_path: build/product/macos/universal/macos-universal.zip
73+
asset_name: "macos-universal-${{ env.RELEASE_VERSION }}.zip"
74+
asset_content_type: application/zip
75+
- name: Upload ios Release Asset
76+
uses: actions/upload-release-asset@v1
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
with:
80+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
81+
asset_path: build/product/ios/universal/ios-universal.zip
82+
asset_name: "ios-universal-${{ env.RELEASE_VERSION }}.zip"
83+
asset_content_type: application/zip
84+
- name: Upload macos src md
85+
uses: actions/upload-release-asset@v1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
90+
asset_path: build/src/macos-src-log.md
91+
asset_name: "macos-src-log-${{ env.RELEASE_VERSION }}.md"
92+
asset_content_type: application/text
93+
- name: Upload ios src md
94+
uses: actions/upload-release-asset@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
99+
asset_path: build/src/ios-src-log.md
100+
asset_name: "ios-src-log-${{ env.RELEASE_VERSION }}.md"
101+
asset_content_type: application/text

init-cfgs/bluray

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ export GIT_LOCAL_REPO=build/extra/bluray
2626
export GIT_COMMIT=1.3.1
2727
export GIT_WITH_SUBMODULE=1
2828
export REPO_DIR=bluray
29+
export GIT_BLURAY_VERSION=1.3.1

init-cfgs/dav1d

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ export GIT_LOCAL_REPO=build/extra/dav1d
2626
export GIT_COMMIT=1.2.0
2727
export GIT_WITH_SUBMODULE=0
2828
export REPO_DIR=dav1d
29+
export GIT_DAV1D_VERSION=1.2.0

init-cfgs/openssl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ fi
2525

2626
export GIT_LOCAL_REPO=build/extra/openssl
2727
export GIT_COMMIT=OpenSSL_1_1_1u
28-
export GIT_OPENSSL_VERSION=1.1.1u
29-
export REPO_DIR=openssl
28+
export REPO_DIR=openssl
29+
export GIT_OPENSSL_VERSION=1.1.1u

init-cfgs/opus

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ fi
2424

2525
export GIT_LOCAL_REPO=build/extra/opus
2626
export GIT_COMMIT=v1.3.1
27-
export REPO_DIR=opus
27+
export REPO_DIR=opus
28+
export GIT_OPUS_VERSION=1.3.1

0 commit comments

Comments
 (0)