继续挣扎一会 #91
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MediaConverters | |
| on: [push] | |
| jobs: | |
| BuildOnLinux: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:buster-slim | |
| steps: | |
| # 由于 Debian 10 (buster) 停止维护了,需要换成 archive.debian.org 源头 | |
| - name: UpdateSource | |
| run: | | |
| rm /etc/apt/sources.list | |
| echo 'deb http://archive.debian.org/debian buster main contrib non-free' >> /etc/apt/sources.list | |
| echo 'deb http://archive.debian.org/debian buster-updates main contrib non-free' >> /etc/apt/sources.list | |
| echo 'deb http://archive.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list | |
| - name: InstallTool | |
| run: | | |
| dpkg --add-architecture arm64 | |
| apt-get clean | |
| apt-get update | |
| apt-get install libicu-dev -y | |
| apt-get install libssl-dev -y | |
| apt-get install wget -y | |
| apt-get install curl -y | |
| apt-get install clang llvm -y | |
| apt-get install gcc-aarch64-linux-gnu -y | |
| apt-get install binutils-aarch64-linux-gnu -y | |
| apt-get install zlib1g-dev -y | |
| apt-get install zlib1g-dev:arm64 -y | |
| - uses: actions/checkout@v1 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| - name: Publish and Pack linux-arm64 | |
| run: | | |
| dotnet publish -c Release -r linux-arm64 src/MediaConverters/MediaConverters.Tool/MediaConverters.Tool.csproj | |
| dotnet pack --configuration Release /p:RuntimeIdentifier=linux-arm64 src/MediaConverters/MediaConverters.Tool.RuntimeNuGet/MediaConverters.Tool.RuntimeNuGet.csproj | |
| - uses: actions/upload-artifact@v4 | |
| name: UploadArtifact | |
| with: | |
| name: linux-arm64 | |
| path: bin/Release/ | |
| retention-days: 1 | |
| # dotnet nuget push ./bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NugetKey }} |