disable trim for macOS

https://github.com/dotnet/linker/issues/3157
This commit is contained in:
nilaoda 2022-12-10 17:02:16 +08:00
parent 5edc7ae054
commit f06e9afdeb
1 changed files with 4 additions and 2 deletions

View File

@ -137,8 +137,10 @@ jobs:
with: with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }} dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
include-prerelease: true include-prerelease: true
- run: dotnet publish src/N_m3u8DL-RE -r osx-arm64 -c Release -o artifact-arm64 -p:PublishTrimmed=true -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true # - run: dotnet publish src/N_m3u8DL-RE -r osx-arm64 -c Release -o artifact-arm64 -p:PublishTrimmed=true -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
- run: dotnet publish src/N_m3u8DL-RE -r osx-x64 -c Release -o artifact-x64 -p:PublishTrimmed=true -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true # - run: dotnet publish src/N_m3u8DL-RE -r osx-x64 -c Release -o artifact-x64 -p:PublishTrimmed=true -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
- run: dotnet publish src/N_m3u8DL-RE -r osx-arm64 -c Release -o artifact-arm64 -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
- run: dotnet publish src/N_m3u8DL-RE -r osx-x64 -c Release -o artifact-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
- name: Upload Artifact[osx-x64] - name: Upload Artifact[osx-x64]
uses: actions/upload-artifact@v1.0.0 uses: actions/upload-artifact@v1.0.0