Skip to content

Commit d861b4b

Browse files
committed
update ci
1 parent 5139b17 commit d861b4b

File tree

4 files changed

+89
-16
lines changed

4 files changed

+89
-16
lines changed

.github/workflows/build.yml

Lines changed: 81 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
token: ${{ secrets.CLONE_PAT }}
4242
submodules: 'recursive'
4343
- name: Setup Xcode
44-
run: sudo xcode-select -s /Applications/Xcode_15.3.app
44+
run: sudo xcode-select -s /Applications/Xcode_${{ vars.XCODE }}.app
4545
- name: 'Restore External Dep cache'
4646
id: external-dep-cache
4747
uses: actions/cache@v4
@@ -122,7 +122,7 @@ jobs:
122122
token: ${{ secrets.CLONE_PAT }}
123123
submodules: 'recursive'
124124
- name: Setup Xcode
125-
run: sudo xcode-select -s /Applications/Xcode_15.3.app
125+
run: sudo xcode-select -s /Applications/Xcode_${{ vars.XCODE }}.app
126126
- name: 'Restore External Dep cache'
127127
id: external-dep-cache
128128
uses: actions/cache@v4
@@ -190,13 +190,13 @@ jobs:
190190
needs: [macOS, iOS]
191191
steps:
192192
- name: Setup Xcode
193-
run: sudo xcode-select -s /Applications/Xcode_15.3.app
193+
run: sudo xcode-select -s /Applications/Xcode_${{ vars.XCODE }}.app
194194
- uses: actions/checkout@v4
195-
- name: Download macOS sdk
195+
- name: Download macOS x64 sdk
196196
uses: actions/download-artifact@v4
197197
with:
198198
name: mdk-sdk-macOS-x86_64-MinSizeRel
199-
- name: Download macOS sdk
199+
- name: Download macOS arm64 sdk
200200
uses: actions/download-artifact@v4
201201
with:
202202
name: mdk-sdk-macOS-arm64-MinSizeRel
@@ -1032,3 +1032,79 @@ jobs:
10321032
gh workflow run main.yml --repo ${{ github.repository_owner }}/mdk-nvjp2k -f run_id=${{ github.run_id }}
10331033
env:
10341034
GH_TOKEN: ${{ secrets.ACTION_PAT }} # GITHUB_TOKEN?
1035+
1036+
Release:
1037+
runs-on: ubuntu-latest
1038+
if: startsWith(github.ref, 'refs/tags/')
1039+
needs: [Apple, NuGet, Linux, Android, ClangCL]
1040+
steps:
1041+
- name: Checkout
1042+
uses: actions/checkout@v4
1043+
- name: Download iOS sdk
1044+
uses: actions/download-artifact@v4
1045+
with:
1046+
name: mdk-sdk-iOS-MinSizeRel
1047+
- name: Download iOSSimulator sdk
1048+
uses: actions/download-artifact@v4
1049+
with:
1050+
name: mdk-sdk-iOSSimulator-MinSizeRel
1051+
- name: Download tvOS sdk
1052+
uses: actions/download-artifact@v4
1053+
with:
1054+
name: mdk-sdk-tvOS-MinSizeRel
1055+
- name: Download tvOSSimulator sdk
1056+
uses: actions/download-artifact@v4
1057+
with:
1058+
name: mdk-sdk-tvOSSimulator-MinSizeRel
1059+
- name: Download visionOS sdk
1060+
uses: actions/download-artifact@v4
1061+
with:
1062+
name: mdk-sdk-visionOS-MinSizeRel
1063+
- name: Download visionOSSimulator sdk
1064+
uses: actions/download-artifact@v4
1065+
with:
1066+
name: mdk-sdk-visionOSSimulator-MinSizeRel
1067+
- name: Download macCatalyst sdk
1068+
uses: actions/download-artifact@v4
1069+
with:
1070+
name: mdk-sdk-macCatalyst-MinSizeRel
1071+
- name: Download macOS sdk
1072+
uses: actions/download-artifact@v4
1073+
with:
1074+
name: mdk-sdk-macOS
1075+
- name: Download Apple sdk
1076+
uses: actions/download-artifact@v4
1077+
with:
1078+
name: mdk-sdk-apple
1079+
- name: Download win32 vs2022 sdk
1080+
uses: actions/download-artifact@v4
1081+
with:
1082+
name: mdk-sdk-vs2022-windows-desktop-RelWithDebInfo
1083+
- name: Download win32 vs2022 ltl sdk
1084+
uses: actions/download-artifact@v4
1085+
with:
1086+
name: mdk-sdk-vs2022-ltl-windows-desktop-RelWithDebInfo
1087+
- name: Download uwp vs2022 sdk
1088+
uses: actions/download-artifact@v4
1089+
with:
1090+
name: mdk-sdk-vs2022-uwp-RelWithDebInfo
1091+
- name: Download clang-cl sdk
1092+
uses: actions/download-artifact@v4
1093+
with:
1094+
name: mdk-sdk-clang-windows-desktop-MinSizeRel
1095+
- name: Download linux sdk
1096+
uses: actions/download-artifact@v4
1097+
with:
1098+
name: mdk-sdk-linux-MinSizeRel
1099+
- name: Download android sdk
1100+
uses: actions/download-artifact@v4
1101+
with:
1102+
name: mdk-sdk-android-MinSizeRel
1103+
- name: Release
1104+
uses: softprops/action-gh-release@v2
1105+
with:
1106+
draft: true
1107+
body_path: Changelog.md
1108+
files: |
1109+
*.7z
1110+
*.xz

README.Linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
## About SDK for Linux
23-
SDK is built by clang 19 with
23+
SDK is built by clang 20 with
2424
- ffmpeg: https://sourceforge.net/projects/avbuild/files/linux/ffmpeg-master-linux-clang-lite-lto.tar.xz/download
2525
- libc++ 18. You can use delete libc++.so from sdk and use system libc++
2626

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ pod 'mdk'
5454

5555
Optionally you can use [mdk.xcframework](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-apple.tar.xz/download) directly.
5656

57-
If fail to code sign: In `Build Phase`, add a `New Run Script Phase` with content
58-
```bash
59-
[ -n "$CODE_SIGN_IDENTITY" ] && find "$BUILT_PRODUCTS_DIR" -depth -name "lib*.dylib" -exec codesign -f -vvvv -s"${EXPANDED_CODE_SIGN_IDENTITY}" ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements,flags {} \;
60-
````
61-
6257
#### Swift Users
6358
```ruby
6459
pod 'swift-mdk'
@@ -73,6 +68,12 @@ import swift_mdk
7368

7469
Install via [NuGet](https://www.nuget.org/packages/mdk) in Visual Studio for both Windows desktop and UWP
7570

71+
## macOS Hardened Runtime
72+
You may fail to run(or codesign) with default hardened runtime options because there are some dylib files in mdk.framework not signed correctly. You can either select `Disable Library Validation` in `Hardened Runtime` options, or sign dylib(**RECOMMENDED**): In `Build Phase`, add a `New Run Script Phase` with content
73+
```bash
74+
[ -n "$CODE_SIGN_IDENTITY" ] && find "$BUILT_PRODUCTS_DIR" -depth -path "*mdk.framework/*" -name "lib*.dylib" -exec codesign -f -vvvv -s"${EXPANDED_CODE_SIGN_IDENTITY}" ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements,flags {} \;
75+
```
76+
7677
## Distribute
7778
- mdk(libmdk.so.0/ibmdk.dylib/mdk.dll) and ffmpeg library(or standard ffmpeg libraries) are always REQUIRED
7879
- libass.dll/libass.dylib/ass.framework/libass.so can be optional if not using subtitle rendering
@@ -156,6 +157,7 @@ Install via [NuGet](https://www.nuget.org/packages/mdk) in Visual Studio for bot
156157
<!-- <a href="https://smartplayer.ru"><img src="https://static.tildacdn.com/tild3431-3533-4461-b365-386335306263/Group_101.svg" alt="smartplayer" width=600 height=120 style="background-color:black"></a> -->
157158
[![](https://teleguard.com/images/logo.png)](https://teleguard.com)[!
158159
![DaKanji](https://dakanji.app/wp-content/uploads/thegem-logos/logo_a496404d3d63fd29f344146e428d0992_2x.png)](https://dakanji.app)
160+
[![Fimosa](https://fimosa.app/_next/image?url=%2Flogo_final.png&w=64&q=75)](https://fimosa.app)
159161
160162
161163
[金嵘达科技](http://www.kingroda.com)

ci-before-build.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ tolower(){
1313

1414
crt_extra=$(tolower ${CRT_EXTRA})
1515

16-
if [[ "$TARGET_OS" == xr* || "$TARGET_OS" == vision* ]]; then
17-
# FIXME: llvm-17 can't correctly merge visionOS lto libs(libavformat.a)
18-
# FIXME: linking to libffmpeg.a(relocatable obj) by ci results in larger binary size
19-
LTO_SUFFIX=
20-
fi
2116
if [[ "$TARGET_OS" == mac* || "$TARGET_OS" == iOS* || "$TARGET_OS" == tvOS* || "$TARGET_OS" == xr* || "$TARGET_OS" == vision* || "$TARGET_OS" == android ]]; then
2217
FF_EXTRA=
2318
fi

0 commit comments

Comments
 (0)