33on : [push]
44
55jobs :
6+ BuildOnWindows :
7+
8+ runs-on : windows-latest
9+
10+ steps :
11+ - uses : actions/checkout@v1
12+
13+ - name : Build with dotnet
14+ run : dotnet build --configuration Release src\MediaConverters\MediaConverters.sln
15+
16+ - name : Test
17+ run : dotnet test --configuration Release --no-build src\MediaConverters\MediaConverters.Tests\MediaConverters.Tests.csproj
618
719 BuildOnLinux :
820
921 runs-on : ubuntu-latest
10- container :
11- image : debian:buster-slim
1222
1323 steps :
14- # 由于 Debian 10 (buster) 停止维护了,需要换成 archive.debian.org 源头
15- - name : UpdateSource
16- run : |
17- rm /etc/apt/sources.list
18- echo 'deb http://archive.debian.org/debian buster main contrib non-free' >> /etc/apt/sources.list
19- echo 'deb http://archive.debian.org/debian buster-updates main contrib non-free' >> /etc/apt/sources.list
20- echo 'deb http://archive.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
21- - name : InstallTool
22- run : |
23- dpkg --add-architecture arm64
24- apt-get clean
25- apt-get update
26- apt-get install libicu-dev -y
27- apt-get install libssl-dev -y
28- apt-get install wget -y
29- apt-get install curl -y
30- apt-get install clang llvm -y
31- apt-get install gcc-aarch64-linux-gnu -y
32- apt-get install binutils-aarch64-linux-gnu -y
33- apt-get install zlib1g-dev -y
34- apt-get install zlib1g-dev:arm64 -y
35-
3624 - uses : actions/checkout@v1
3725 - name : Setup dotnet
3826 uses : actions/setup-dotnet@v4
3927 with :
4028 dotnet-version : |
4129 9.0.x
4230
43- - name : Publish and Pack linux-arm64
44- run : |
45- dotnet publish -c Release -r linux-arm64 src/MediaConverters/MediaConverters.Tool/MediaConverters.Tool.csproj
46- dotnet pack --configuration Release /p:RuntimeIdentifier=linux-arm64 src/MediaConverters/MediaConverters.Tool.RuntimeNuGet/MediaConverters.Tool.RuntimeNuGet.csproj
47-
48- - uses : actions/upload-artifact@v4
49- name : UploadArtifact
50- with :
51- name : linux-arm64
52- path : bin/Release/
53- retention-days : 1
31+ - name : Build with dotnet
32+ run : dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
33+
34+ - name : Test
35+ run : dotnet test --configuration Release --no-build src/MediaConverters/MediaConverters.Tests/MediaConverters.Tests.csproj
0 commit comments