增加 linux-bionic 编译 (#518)
This commit is contained in:
parent
09d9f0e320
commit
6bd906e4e6
|
@ -109,6 +109,43 @@ jobs:
|
|||
name: N_m3u8DL-RE_Beta_linux-arm64
|
||||
path: artifact-arm64/N_m3u8DL-RE
|
||||
|
||||
build-android-bionic-x64-arm64:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up NDK
|
||||
shell: pwsh
|
||||
run: |
|
||||
Invoke-WebRequest -Uri "https://dl.google.com/android/repository/android-ndk-r27c-windows.zip" -OutFile "android-ndk.zip"
|
||||
Expand-Archive -Path "android-ndk.zip" -DestinationPath "./android-ndk"
|
||||
Get-ChildItem -Path "./android-ndk"
|
||||
$ndkRoot = "${{ github.workspace }}\android-ndk\android-ndk-r27c"
|
||||
echo "NDK_ROOT=$ndkRoot" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
|
||||
$ndkBinPath = "$ndkRoot\toolchains\llvm\prebuilt\windows-x86_64\bin"
|
||||
echo $ndkBinPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
|
||||
|
||||
- name: Set up dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-bionic-x64 -p:DisableUnsupportedError=true -p:PublishAotUsingRuntimePack=true -o artifact
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-bionic-arm64 -p:DisableUnsupportedError=true -p:PublishAotUsingRuntimePack=true -o artifact-arm64
|
||||
|
||||
- name: Upload Artifact[linux-bionic-x64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_android-bionic-x64
|
||||
path: artifact/N_m3u8DL-RE
|
||||
|
||||
- name: Upload Artifact[linux-bionic-arm64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_android-bionic-arm64
|
||||
path: artifact-arm64/N_m3u8DL-RE
|
||||
|
||||
build-linux-musl-x64:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet/sdk:9.0-alpine-amd64
|
||||
|
@ -174,7 +211,7 @@ jobs:
|
|||
create_draft_release:
|
||||
name: Create Github draft release
|
||||
if: ${{ github.event.inputs.doRelease == 'true' }}
|
||||
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]
|
||||
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]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Audit gh version
|
||||
|
|
Loading…
Reference in New Issue