File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 name : ' Build native library'
1212 runs-on : windows-latest
1313
14+ outputs :
15+ native-id : ${{ steps.artup.outputs.artifact-id }}
16+
1417 steps :
1518 - name : ' Checkout repo'
1619 uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2730 - name : ' Build project'
2831 run : msbuild /t:build /p:Platform=x64 /p:Configuration=Release Native\ApplicationLoopback.vcxproj
2932
33+ - name : ' Upload artifact'
34+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
35+ id : artup
36+ with :
37+ name : ' native-lib'
38+ path : Native\x64\Release\ApplicationLoopback.dll
39+
3040 build-publish :
3141 name : ' Build and push NuGet'
3242 runs-on : ubuntu-latest
@@ -41,13 +51,24 @@ jobs:
4151 - name : ' Checkout repo'
4252 uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4353
54+ - name : ' Download native lib'
55+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
56+ with :
57+ artifact-ids : ${{ needs.build-native.outputs.native-id }}
58+
4459 - name : ' Build NuGet'
4560 uses : Yellow-Dog-Man/composite-actions-templates/.github/actions/dotnet-build@606ac289d701be7b7d90e5ff8647dedf57d6d755 # main
4661 with :
4762 dotnet-build-args : ${{ env.IS_RELEASE == 'true' && format('-p:Version={0} -o nupkgs', github.ref_name) || '-o nupkgs' }}
4863 dotnet-project-path : ' ApplicationLoopback.NET/ApplicationLoopback.NET/ApplicationLoopback.NET.csproj'
4964 dotnet-build-type : ' pack'
5065
66+ - name : ' Upload artifact'
67+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
68+ with :
69+ name : ' nuget-packages'
70+ path : nupkgs/*.nupkg
71+
5172 - name : ' Push nuget'
5273 if : ${{ env.IS_RELEASE == 'true' }}
5374 uses : Yellow-Dog-Man/composite-actions-templates/.github/actions/dotnet-build-push-nuget@606ac289d701be7b7d90e5ff8647dedf57d6d755 # main
You can’t perform that action at this time.
0 commit comments