|
238 | 238 | debug_info:
|
239 | 239 | required: true
|
240 | 240 | type: boolean
|
| 241 | + |
| 242 | + release: |
| 243 | + required: true |
| 244 | + type: boolean |
241 | 245 |
|
242 | 246 | signed:
|
243 | 247 | required: true
|
@@ -294,6 +298,10 @@ defaults:
|
294 | 298 | run:
|
295 | 299 | shell: pwsh
|
296 | 300 |
|
| 301 | +permissions: |
| 302 | + id-token: write |
| 303 | + attestations: write |
| 304 | + |
297 | 305 | jobs:
|
298 | 306 | sqlite:
|
299 | 307 | runs-on: ${{ inputs.default_build_runner }}
|
@@ -3780,6 +3788,21 @@ jobs:
|
3780 | 3788 | -p:VCRedistDir="$([IO.Path]::Combine(${env:VCToolsRedistDir}, "${{ matrix.arch == 'amd64' && 'x64' || 'arm64' }}", "Microsoft.VC143.CRT"))" `
|
3781 | 3789 | ${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/rtl/msi/rtlmsi.wixproj
|
3782 | 3790 |
|
| 3791 | + - if: ${{ inputs.release }} |
| 3792 | + uses: actions/attest-build-provenance@v2 |
| 3793 | + with: |
| 3794 | + subject-path: | |
| 3795 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/bld.msi |
| 3796 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/bld.cab |
| 3797 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/cli.msi |
| 3798 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/cli.cab |
| 3799 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/dbg.msi |
| 3800 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/dbg.cab |
| 3801 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/ide.msi |
| 3802 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/ide.cab |
| 3803 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.msi |
| 3804 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.cab |
| 3805 | +
|
3783 | 3806 | - uses: actions/upload-artifact@v4
|
3784 | 3807 | with:
|
3785 | 3808 | name: Windows-${{ matrix.arch }}-bld-msi
|
@@ -3954,6 +3977,19 @@ jobs:
|
3954 | 3977 | -p:WindowsRuntimeX86="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes/Windows-i686" `
|
3955 | 3978 | ${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/platforms/windows/windows.wixproj
|
3956 | 3979 |
|
| 3980 | + - if: ${{ inputs.release }} |
| 3981 | + uses: actions/attest-build-provenance@v2 |
| 3982 | + with: |
| 3983 | + subject-path: | |
| 3984 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/windows.msi |
| 3985 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/windows.cab |
| 3986 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.windows.arm64.cab |
| 3987 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.windows.x64.cab |
| 3988 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.windows.x86.cab |
| 3989 | + ${{ github.workspace }}/BinaryCache/installer/Release/amd64/rtl.amd64.msm |
| 3990 | + ${{ github.workspace }}/BinaryCache/installer/Release/arm64/rtl.arm64.msm |
| 3991 | + ${{ github.workspace }}/BinaryCache/installer/Release/x86/rtl.x86.msm |
| 3992 | +
|
3957 | 3993 | - uses: actions/upload-artifact@v4
|
3958 | 3994 | with:
|
3959 | 3995 | name: Windows-platform-msi
|
@@ -4126,6 +4162,17 @@ jobs:
|
4126 | 4162 | -p:AndroidArchitectures="`"x86_64;aarch64;i686;armv7`"" `
|
4127 | 4163 | ${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/platforms/android/android.wixproj
|
4128 | 4164 |
|
| 4165 | + - if: ${{ inputs.build_android && inputs.release }} |
| 4166 | + uses: actions/attest-build-provenance@v2 |
| 4167 | + with: |
| 4168 | + subject-path: | |
| 4169 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/android.msi |
| 4170 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/android.cab |
| 4171 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.android.arm64.cab |
| 4172 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.android.arm.cab |
| 4173 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.android.x64.cab |
| 4174 | + ${{ github.workspace }}/BinaryCache/installer/Release/${{ inputs.build_arch }}/sdk.android.x86.cab |
| 4175 | +
|
4129 | 4176 | - if: inputs.build_android
|
4130 | 4177 | uses: actions/upload-artifact@v4
|
4131 | 4178 | with:
|
@@ -4253,6 +4300,11 @@ jobs:
|
4253 | 4300 | -p:ProductVersion=${{ inputs.swift_version }}-${{ inputs.swift_tag }} `
|
4254 | 4301 | ${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/bundle/installer.wixproj
|
4255 | 4302 |
|
| 4303 | + - if: ${{ inputs.release }} |
| 4304 | + uses: actions/attest-build-provenance@v2 |
| 4305 | + with: |
| 4306 | + subject-path: ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/installer.exe |
| 4307 | + |
4256 | 4308 | - uses: actions/upload-artifact@v4
|
4257 | 4309 | with:
|
4258 | 4310 | name: Windows-${{ matrix.arch }}-installer
|
|
0 commit comments