Skip to content

Commit 494d423

Browse files
committed
format
1 parent d9ba1d2 commit 494d423

File tree

2 files changed

+176
-178
lines changed

2 files changed

+176
-178
lines changed
Lines changed: 89 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,99 @@
11
on:
22
push:
3-
branches: [ master ]
3+
branches: [master]
44
pull_request:
5-
branches: [ master ]
5+
branches: [master]
66

7-
name: Create Release (Github Edition)
7+
name: Create Release (Github Edition)
88

99
jobs:
1010
build:
1111
name: compile libs then deploy
1212
runs-on: macos-latest
1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v3
16-
- name: Read Tag Version
17-
run: |
18-
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
19-
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs echo > constants.env
20-
git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs echo > constants.env
21-
echo 'EDITION=github' >> constants.env
22-
cat constants.env
23-
- name: Export Env
24-
uses: cardinalby/export-env-action@v2
25-
with:
26-
envFile: 'constants.env'
27-
- run: |
28-
export SKIP_FFMPEG_PATHCHES=1
29-
./init-any.sh all
30-
- name: generate src log
31-
run: |
32-
cd build/src/macos
33-
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
34-
cd ../ios
35-
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
36-
- name: do compile macos libs
37-
run: |
38-
cd macos
39-
./compile-any.sh build libyuv
40-
./compile-any.sh lipo libyuv
41-
- name: do compile ios libs
42-
run: |
43-
cd ios
44-
./compile-any.sh build libyuv
45-
./compile-any.sh lipo libyuv
46-
- name:
47-
- name: Zip macos libs
48-
run: |
49-
cd build/product/macos/universal
50-
zip -rq macos-universal.zip ./*
51-
- name: Zip ios libs
52-
run: |
53-
cd build/product/ios/universal
54-
zip -rq ios-universal.zip ./*
55-
- name: Create ${{ env.EDITION }} Release
56-
id: create_release
57-
uses: actions/create-release@v1
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
with:
61-
tag_name: ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
62-
release_name: Release ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
63-
draft: false
64-
prerelease: false
65-
- name: Upload macos Release Asset
66-
uses: actions/upload-release-asset@v1
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
with:
70-
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
71-
asset_path: build/product/macos/universal/macos-universal.zip
72-
asset_name: "macos-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
73-
asset_content_type: application/zip
74-
- name: Upload ios Release Asset
75-
uses: actions/upload-release-asset@v1
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
with:
79-
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
80-
asset_path: build/product/ios/universal/ios-universal.zip
81-
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
82-
asset_content_type: application/zip
83-
- name: Upload macos src md
84-
uses: actions/upload-release-asset@v1
85-
env:
86-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87-
with:
88-
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
89-
asset_path: build/src/macos-src-log.md
90-
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
91-
asset_content_type: application/text
92-
- name: Upload ios src md
93-
uses: actions/upload-release-asset@v1
94-
env:
95-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96-
with:
97-
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
98-
asset_path: build/src/ios-src-log.md
99-
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
100-
asset_content_type: application/text
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
- name: Read Tag Version
17+
run: |
18+
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
19+
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs echo > constants.env
20+
git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs echo > constants.env
21+
echo 'EDITION=github' >> constants.env
22+
cat constants.env
23+
- name: Export Env
24+
uses: cardinalby/export-env-action@v2
25+
with:
26+
envFile: 'constants.env'
27+
- run: |
28+
export SKIP_FFMPEG_PATHCHES=1
29+
./init-any.sh all
30+
- name: generate src log
31+
run: |
32+
cd build/src/macos
33+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
34+
cd ../ios
35+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
36+
- name: do compile macos libs
37+
run: |
38+
cd macos
39+
./compile-any.sh build libyuv
40+
./compile-any.sh lipo libyuv
41+
- name: do compile ios libs
42+
run: |
43+
cd ios
44+
./compile-any.sh build libyuv
45+
./compile-any.sh lipo libyuv
46+
- name: Zip macos libs
47+
run: |
48+
cd build/product/macos/universal
49+
zip -rq macos-universal.zip ./*
50+
- name: Zip ios libs
51+
run: |
52+
cd build/product/ios/universal
53+
zip -rq ios-universal.zip ./*
54+
- name: Create ${{ env.EDITION }} Release
55+
id: create_release
56+
uses: actions/create-release@v1
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
with:
60+
tag_name: ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
61+
release_name: Release ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
62+
draft: false
63+
prerelease: false
64+
- name: Upload macos Release Asset
65+
uses: actions/upload-release-asset@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
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
70+
asset_path: build/product/macos/universal/macos-universal.zip
71+
asset_name: "macos-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
72+
asset_content_type: application/zip
73+
- name: Upload ios Release Asset
74+
uses: actions/upload-release-asset@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
with:
78+
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
79+
asset_path: build/product/ios/universal/ios-universal.zip
80+
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
81+
asset_content_type: application/zip
82+
- name: Upload macos src md
83+
uses: actions/upload-release-asset@v1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
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
88+
asset_path: build/src/macos-src-log.md
89+
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
90+
asset_content_type: application/text
91+
- name: Upload ios src md
92+
uses: actions/upload-release-asset@v1
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
with:
96+
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
97+
asset_path: build/src/ios-src-log.md
98+
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
99+
asset_content_type: application/text
Lines changed: 87 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,97 @@
11
on:
22
push:
3-
branches: [ master ]
3+
branches: [master]
44
pull_request:
5-
branches: [ master ]
5+
branches: [master]
66

7-
name: Create Release (IJK Edition)
7+
name: Create Release (IJK Edition)
88

99
jobs:
1010
build:
1111
name: compile libs then deploy
1212
runs-on: macos-latest
1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v3
16-
- name: Read Tag Version
17-
run: |
18-
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
19-
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs echo > constants.env
20-
git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs echo > constants.env
21-
echo 'EDITION=ijk' >> constants.env
22-
cat constants.env
23-
- name: Export Env
24-
uses: cardinalby/export-env-action@v2
25-
with:
26-
envFile: 'constants.env'
27-
- run: ./init-any.sh all
28-
- name: generate src log
29-
run: |
30-
cd build/src/macos
31-
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
32-
cd ../ios
33-
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
34-
- name: do compile macos libs
35-
run: |
36-
cd macos
37-
./compile-any.sh build libyuv
38-
./compile-any.sh lipo libyuv
39-
- name: do compile ios libs
40-
run: |
41-
cd ios
42-
./compile-any.sh build libyuv
43-
./compile-any.sh lipo libyuv
44-
- name:
45-
- name: Zip macos libs
46-
run: |
47-
cd build/product/macos/universal
48-
zip -rq macos-universal.zip ./*
49-
- name: Zip ios libs
50-
run: |
51-
cd build/product/ios/universal
52-
zip -rq ios-universal.zip ./*
53-
- name: Create ${{ env.EDITION }} Release
54-
id: create_release
55-
uses: actions/create-release@v1
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
with:
59-
tag_name: ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
60-
release_name: Release ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
61-
draft: false
62-
prerelease: false
63-
- name: Upload macos Release Asset
64-
uses: actions/upload-release-asset@v1
65-
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
with:
68-
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
69-
asset_path: build/product/macos/universal/macos-universal.zip
70-
asset_name: "macos-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
71-
asset_content_type: application/zip
72-
- name: Upload ios Release Asset
73-
uses: actions/upload-release-asset@v1
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
with:
77-
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
78-
asset_path: build/product/ios/universal/ios-universal.zip
79-
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
80-
asset_content_type: application/zip
81-
- name: Upload macos src md
82-
uses: actions/upload-release-asset@v1
83-
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
with:
86-
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
87-
asset_path: build/src/macos-src-log.md
88-
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
89-
asset_content_type: application/text
90-
- name: Upload ios src md
91-
uses: actions/upload-release-asset@v1
92-
env:
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94-
with:
95-
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
96-
asset_path: build/src/ios-src-log.md
97-
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
98-
asset_content_type: application/text
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
- name: Read Tag Version
17+
run: |
18+
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
19+
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs echo > constants.env
20+
git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}' | xargs echo > constants.env
21+
echo 'EDITION=ijk' >> constants.env
22+
cat constants.env
23+
- name: Export Env
24+
uses: cardinalby/export-env-action@v2
25+
with:
26+
envFile: 'constants.env'
27+
- run: ./init-any.sh all
28+
- name: generate src log
29+
run: |
30+
cd build/src/macos
31+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
32+
cd ../ios
33+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
34+
- name: do compile macos libs
35+
run: |
36+
cd macos
37+
./compile-any.sh build libyuv
38+
./compile-any.sh lipo libyuv
39+
- name: do compile ios libs
40+
run: |
41+
cd ios
42+
./compile-any.sh build libyuv
43+
./compile-any.sh lipo libyuv
44+
- name: Zip macos libs
45+
run: |
46+
cd build/product/macos/universal
47+
zip -rq macos-universal.zip ./*
48+
- name: Zip ios libs
49+
run: |
50+
cd build/product/ios/universal
51+
zip -rq ios-universal.zip ./*
52+
- name: Create ${{ env.EDITION }} Release
53+
id: create_release
54+
uses: actions/create-release@v1
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
tag_name: ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
59+
release_name: Release ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
60+
draft: false
61+
prerelease: false
62+
- name: Upload macos Release Asset
63+
uses: actions/upload-release-asset@v1
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
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
68+
asset_path: build/product/macos/universal/macos-universal.zip
69+
asset_name: "macos-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
70+
asset_content_type: application/zip
71+
- name: Upload ios Release Asset
72+
uses: actions/upload-release-asset@v1
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
with:
76+
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
77+
asset_path: build/product/ios/universal/ios-universal.zip
78+
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
79+
asset_content_type: application/zip
80+
- name: Upload macos src md
81+
uses: actions/upload-release-asset@v1
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
with:
85+
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
86+
asset_path: build/src/macos-src-log.md
87+
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
88+
asset_content_type: application/text
89+
- name: Upload ios src md
90+
uses: actions/upload-release-asset@v1
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
with:
94+
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
95+
asset_path: build/src/ios-src-log.md
96+
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
97+
asset_content_type: application/text

0 commit comments

Comments
 (0)