1414 - win-x86
1515 - linux-x64
1616 - osx-x64
17- - osx-arm64
1817 env :
1918 release : ' dev-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
2019 steps :
2726 run : dotnet publish ./dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
2827 - name : Build plugins
2928 run : dotnet build ./dev-proxy-plugins/dev-proxy-plugins.csproj -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -c Release -r ${{ matrix.architecture }} --no-self-contained
29+ - name : Build abstractions
30+ if : matrix.architecture == 'win-x64'
31+ run : dotnet build ./dev-proxy-abstractions/dev-proxy-abstractions.csproj -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -c Release --no-self-contained
3032 - name : Add plugins to output
3133 run : cp ./dev-proxy/bin/Release/net8.0/${{ matrix.architecture }}/plugins ./${{ env.release }} -r
3234 - name : Remove unnecessary files
@@ -37,15 +39,29 @@ jobs:
3739 Get-ChildItem -Filter *.deps.json -Recurse | Remove-Item
3840 Get-ChildItem -Filter *.runtimeconfig.json -Recurse | Remove-Item
3941 popd
40- - name : Archive Release ${{ env.release }}
42+ - name : Archive release ${{ env.release }}
4143 uses : thedoctor0/zip-release@master
4244 with :
4345 filename : ' ../${{ env.release }}.zip'
4446 directory : ' ./${{ env.release }}'
45- - uses : actions/upload-artifact@v4
47+ - name : Upload release
48+ uses : actions/upload-artifact@v4
4649 with :
4750 name : binaries-${{ env.release }}
4851 path : ./${{ env.release }}.zip
52+ - name : Archive abstractions
53+ if : matrix.architecture == 'win-x64'
54+ uses : thedoctor0/zip-release@master
55+ with :
56+ filename : ' ../../../../dev-proxy-abstractions-${{ github.ref_name }}.zip'
57+ directory : ' ./dev-proxy-abstractions/bin/Release/net8.0'
58+ exclusions : ' *.json'
59+ - name : Upload abstractions
60+ if : matrix.architecture == 'win-x64'
61+ uses : actions/upload-artifact@v4
62+ with :
63+ name : binaries-dev-proxy-abstractions-${{ github.ref_name }}
64+ path : ./dev-proxy-abstractions-${{ github.ref_name }}.zip
4965 create_release :
5066 name : Create Release
5167 needs : [publish_binaries]
0 commit comments