|
28 | 28 | - name: Build |
29 | 29 | working-directory: ${{github.workspace}}/build |
30 | 30 | run: cmake --build . -t DolbyIO.Comms.Native |
| 31 | + |
31 | 32 | - if: ${{matrix.os == 'macos-latest'}} |
32 | 33 | env: |
33 | 34 | BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} |
|
52 | 53 | xcrun notarytool store-credentials "dotnet-sdk-notarization-profile" --apple-id "iapi@dolby.com" --team-id B55NRA8BRW --password "${IAPI_DOTNET_APP_SPECYFIC_PASSWORD}" |
53 | 54 | codesign --force --strict --timestamp --sign 'Developer ID Application: VOXEET INC. (B55NRA8BRW)' *.dylib |
54 | 55 |
|
55 | | -
|
56 | | - - name: Pack |
57 | | - working-directory: ${{github.workspace}}/build |
58 | | - run: dotnet pack dotnet/${{ matrix.runtime }}/${{ matrix.runtime }}.csproj |
59 | | - |
60 | 56 | - if: ${{matrix.os == 'windows-latest'}} |
61 | 57 | working-directory: ${{github.workspace}}/build/bin |
62 | 58 | run: | |
|
67 | 63 | & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ./certificate.pfx /p ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD}} /t http://timestamp.digicert.com/ dolbyio_comms_sdk.dll |
68 | 64 | & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f ./certificate.pfx /p ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD}} /t http://timestamp.digicert.com/ dolbyio_comms_media.dll |
69 | 65 | Remove-Item -Recurse -Force certificate.pfx |
| 66 | + |
| 67 | + - name: Pack |
| 68 | + working-directory: ${{github.workspace}}/build |
| 69 | + run: dotnet pack dotnet/${{ matrix.runtime }}/${{ matrix.runtime }}.csproj |
| 70 | + |
70 | 71 | - uses: actions/upload-artifact@v3 |
71 | 72 | with: |
72 | 73 | name: nugets |
|
80 | 81 | with: |
81 | 82 | submodules: true |
82 | 83 | lfs: true |
83 | | - - name: Install the Apple certificate and notarization profile |
84 | | - env: |
85 | | - BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} |
86 | | - P12_PASSWORD: ${{ secrets.P12_PASSWORD }} |
87 | | - BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }} |
88 | | - KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} |
89 | | - IAPI_DOTNET_APP_SPECYFIC_PASSWORD: ${{ secrets.IAPI_DOTNET_APP_SPECYFIC_PASSWORD }} |
90 | | - run: | |
91 | | - # create variables |
92 | | - CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 |
93 | | - KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db |
94 | | - # import certificate and provisioning profile from secrets |
95 | | - echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH |
96 | | - # create temporary keychain |
97 | | - security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH |
98 | | - security set-keychain-settings -lut 21600 $KEYCHAIN_PATH |
99 | | - security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH |
100 | | - # import certificate to keychain |
101 | | - security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH |
102 | | - security list-keychain -d user -s $KEYCHAIN_PATH |
103 | | - xcrun notarytool store-credentials "dotnet-sdk-notarization-profile" --apple-id "iapi@dolby.com" --team-id B55NRA8BRW --password "${IAPI_DOTNET_APP_SPECYFIC_PASSWORD}" |
104 | 84 | - uses: ./.github/actions/configure |
105 | 85 | - uses: actions/download-artifact@v3 |
106 | 86 | with: |
@@ -135,9 +115,6 @@ jobs: |
135 | 115 | - run: 7z x "${{github.workspace}}/build/bin/DolbyIO.Comms.Sdk.Runtime.*.nupkg" -o${{github.workspace}}/build "runtimes/*" |
136 | 116 | working-directory: ${{github.workspace}}/build |
137 | 117 |
|
138 | | - - name: Sign osx libs |
139 | | - run: | |
140 | | - codesign --force --strict --timestamp --sign 'Developer ID Application: VOXEET INC. (B55NRA8BRW)' ${{github.workspace}}/build/runtimes/osx-universal/native/*.dylib |
141 | 118 | - uses: actions/upload-artifact@v3 |
142 | 119 | with: |
143 | 120 | name: dolbyio-dotnet-binaries |
|
0 commit comments