parent
b3d95963db
commit
9752df8aae
|
@ -42,7 +42,7 @@ jobs:
|
|||
- name: Upload Artifact[win-x86]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_win_NT6.0-x86
|
||||
name: N_m3u8DL-RE_Beta_win-NT6.0-x86
|
||||
path: artifact-x86\N_m3u8DL-RE.exe
|
||||
|
||||
build-win-x64-arm64:
|
||||
|
@ -71,20 +71,31 @@ jobs:
|
|||
name: N_m3u8DL-RE_Beta_win-arm64
|
||||
path: artifact-arm64\N_m3u8DL-RE.exe
|
||||
|
||||
build-linux-x64:
|
||||
build-linux-x64-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
container: ubuntu:18.04
|
||||
|
||||
steps:
|
||||
- run: apt-get update
|
||||
- run: apt-get install -y curl wget
|
||||
# https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
|
||||
- run: |
|
||||
sudo dpkg --add-architecture arm64
|
||||
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
|
||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
||||
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
||||
EOF'
|
||||
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
|
||||
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y curl wget libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
- run: apt-get install -y libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev
|
||||
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-arm64 -c Release -o artifact-arm64
|
||||
|
||||
- name: Upload Artifact[linux-x64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
|
@ -92,22 +103,48 @@ jobs:
|
|||
name: N_m3u8DL-RE_Beta_linux-x64
|
||||
path: artifact/N_m3u8DL-RE
|
||||
|
||||
build-linux-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm64-20220312201346-b2c2436
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- 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-arm64 -c Release -p:StripSymbols=true -p:CppCompilerAndLinker=clang-9 -p:SysRoot=/crossrootfs/arm64 -o artifact
|
||||
|
||||
- name: Upload Artifact[linux-arm64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_linux-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
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- run: apk add clang build-base zlib-dev
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-musl-x64 -c Release -o artifact -p:InvariantGlobalization=true
|
||||
|
||||
- name: Upload Artifact[linux-musl-x64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_linux-musl-x64
|
||||
path: artifact/N_m3u8DL-RE
|
||||
|
||||
build-linux-musl-arm64:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm64-alpine
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
|
||||
- run: apt-get update
|
||||
- run: apt-get install -y build-essential clang binutils-aarch64-linux-gnu
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-musl-arm64 -c Release -o artifact -p:CppCompilerAndLinker=clang -p:SysRoot=/crossrootfs/arm64 -p:InvariantGlobalization=true
|
||||
|
||||
- name: Upload Artifact[linux-musl-arm64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: N_m3u8DL-RE_Beta_linux-musl-arm64
|
||||
path: artifact/N_m3u8DL-RE
|
||||
|
||||
build-mac-x64-arm64:
|
||||
|
@ -137,7 +174,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,build-linux-arm64,build-mac-x64-arm64]
|
||||
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]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Audit gh version
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<SatelliteResourceLanguages>zh-CN;zh-TW;en-US</SatelliteResourceLanguages>
|
||||
<PublishAot>true</PublishAot>
|
||||
<StripSymbols>true</StripSymbols>
|
||||
<ObjCopyName Condition="'$(RuntimeIdentifier)' == 'linux-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
|
||||
<ObjCopyName Condition="'$(RuntimeIdentifier)' == 'linux-arm64' or '$(RuntimeIdentifier)' == 'linux-musl-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--<ItemGroup Condition="'$(PublishAot)' == 'true' and '$(RuntimeIdentifier)' != 'win-arm64' and '$(RuntimeIdentifier)' != 'linux-arm64' and '$(RuntimeIdentifier)' != 'osx-arm64' and '$(RuntimeIdentifier)' != 'osx-x64'">
|
||||
|
|
Loading…
Reference in New Issue