66 ice_version :
77 required : false
88 type : string
9+ run_id :
10+ description : " The run ID to use for downloading artifacts"
11+ required : true
12+ type : string
913 workflow_dispatch :
1014 inputs :
1115 ice_version :
1216 description : " The Ice version to build"
1317 required : false
18+ run_id :
19+ description : " The run ID to use for downloading artifacts"
20+ required : true
1421
1522jobs :
1623 build-cpp-nuget-packages :
@@ -22,28 +29,17 @@ jobs:
2229 - name : Setup C++
2330 uses : ./.github/actions/setup-cpp
2431
25- - name : Setup Java
26- uses : ./.github/actions/setup-java
27-
28- - name : Build C++ Binaries
29- run : msbuild /m ice.proj /t:BuildDist /p:BuildAllConfigurations=yes
30- working-directory : cpp/msbuild
31-
32- - name : Sign C++ Binaries with Trusted Signing
33- uses : azure/trusted-signing-action@v0
34- with :
35- azure-tenant-id : ${{ secrets.AZURE_TENANT_ID }}
36- azure-client-id : ${{ secrets.AZURE_CLIENT_ID }}
37- azure-client-secret : ${{ secrets.AZURE_CLIENT_SECRET }}
38- endpoint : https://eus.codesigning.azure.net/
39- trusted-signing-account-name : zeroc
40- certificate-profile-name : zeroc-ice
41- files-folder : ./cpp/bin
42- files-folder-recurse : true
43- files-folder-filter : exe,dll
44- file-digest : SHA256
45- timestamp-rfc3161 : http://timestamp.acs.microsoft.com
46- timestamp-digest : SHA256
32+ - name : Download C++ Binaries
33+ env :
34+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ run : |
36+ gh run download "${{ inputs.run_id }}" --repo ${{ github.repository }} --name windows-cpp-x64-Release-build --dir cpp
37+ gh run download "${{ inputs.run_id }}" --repo ${{ github.repository }} --name windows-cpp-x64-Debug-build --dir cpp
38+ gh run download "${{ inputs.run_id }}" --repo ${{ github.repository }} --name windows-cpp-Win32-Release-build --dir cpp
39+ gh run download "${{ inputs.run_id }}" --repo ${{ github.repository }} --name windows-cpp-Win32-Debug-build --dir cpp
40+ # Download Slice Tools (We only need the Release x64 build)
41+ gh run download "${{ inputs.run_id }}" --repo ${{ github.repository }} --name windows-cpp-slice-tools `
42+ --dir cpp/tools/ZeroC.Ice.Slice.Tools.Cpp/bin
4743
4844 - name : Ice Package Version
4945 if : ${{ inputs.ice_version != '' }}
6157 name : windows-cpp-nuget-packages
6258 path : |
6359 cpp/msbuild/ZeroC.Ice.Cpp/*.nupkg
64-
65- - name : Upload C++ Binaries
66- uses : actions/upload-artifact@v4
67- with :
68- name : windows-cpp-binaries
69- path : |
70- cpp/bin/x64/Release/
0 commit comments