Skip to content

Commit 6bd906e

Browse files
authored
增加 linux-bionic 编译 (#518)
1 parent 09d9f0e commit 6bd906e

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.github/workflows/build_latest.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,43 @@ jobs:
109109
name: N_m3u8DL-RE_Beta_linux-arm64
110110
path: artifact-arm64/N_m3u8DL-RE
111111

112+
build-android-bionic-x64-arm64:
113+
runs-on: windows-latest
114+
115+
steps:
116+
- uses: actions/checkout@v1
117+
118+
- name: Set up NDK
119+
shell: pwsh
120+
run: |
121+
Invoke-WebRequest -Uri "https://dl.google.com/android/repository/android-ndk-r27c-windows.zip" -OutFile "android-ndk.zip"
122+
Expand-Archive -Path "android-ndk.zip" -DestinationPath "./android-ndk"
123+
Get-ChildItem -Path "./android-ndk"
124+
$ndkRoot = "${{ github.workspace }}\android-ndk\android-ndk-r27c"
125+
echo "NDK_ROOT=$ndkRoot" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
126+
$ndkBinPath = "$ndkRoot\toolchains\llvm\prebuilt\windows-x86_64\bin"
127+
echo $ndkBinPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
128+
129+
- name: Set up dotnet
130+
uses: actions/setup-dotnet@v3
131+
with:
132+
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
133+
134+
- run: dotnet publish src/N_m3u8DL-RE -r linux-bionic-x64 -p:DisableUnsupportedError=true -p:PublishAotUsingRuntimePack=true -o artifact
135+
- run: dotnet publish src/N_m3u8DL-RE -r linux-bionic-arm64 -p:DisableUnsupportedError=true -p:PublishAotUsingRuntimePack=true -o artifact-arm64
136+
137+
- name: Upload Artifact[linux-bionic-x64]
138+
uses: actions/upload-artifact@v3.1.3
139+
with:
140+
name: N_m3u8DL-RE_Beta_android-bionic-x64
141+
path: artifact/N_m3u8DL-RE
142+
143+
- name: Upload Artifact[linux-bionic-arm64]
144+
uses: actions/upload-artifact@v3.1.3
145+
with:
146+
name: N_m3u8DL-RE_Beta_android-bionic-arm64
147+
path: artifact-arm64/N_m3u8DL-RE
148+
112149
build-linux-musl-x64:
113150
runs-on: ubuntu-latest
114151
container: mcr.microsoft.com/dotnet/sdk:9.0-alpine-amd64
@@ -174,7 +211,7 @@ jobs:
174211
create_draft_release:
175212
name: Create Github draft release
176213
if: ${{ github.event.inputs.doRelease == 'true' }}
177-
needs: [build-win-nt6_0-x86,build-win-x64-arm64,build-linux-x64-arm64,build-linux-musl-x64,build-linux-musl-arm64,build-mac-x64-arm64]
214+
needs: [build-win-nt6_0-x86,build-win-x64-arm64,build-linux-x64-arm64,build-android-bionic-x64-arm64,build-linux-musl-x64,build-linux-musl-arm64,build-mac-x64-arm64]
178215
runs-on: ubuntu-latest
179216
steps:
180217
- name: Audit gh version

0 commit comments

Comments
 (0)