aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml18
1 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 36e0583c..78720df2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,6 +22,8 @@ jobs:
22 name: Build 22 name: Build
23 runs-on: windows-2022 23 runs-on: windows-2022
24 env: 24 env:
25 RepoOrg: ${{ github.repository_owner }}
26 SignBuild: ${{ github.repository_owner == 'wixtoolset' && startsWith(github.ref, 'refs/tags/v') }}
25 WixOfficialBuild: ${{ github.repository_owner == 'wixtoolset' && startsWith(github.ref, 'refs/tags/v') }} 27 WixOfficialBuild: ${{ github.repository_owner == 'wixtoolset' && startsWith(github.ref, 'refs/tags/v') }}
26 permissions: 28 permissions:
27 packages: write 29 packages: write
@@ -37,7 +39,7 @@ jobs:
37 # run: ./src/vs_config.cmd 39 # run: ./src/vs_config.cmd
38 40
39 - name: Install sign tool 41 - name: Install sign tool
40 if: ${{ env.WixOfficialBuild == 'true' }} 42 if: ${{ env.SignBuild == 'true' }}
41 shell: cmd 43 shell: cmd
42 run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.24170.3 44 run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.24170.3
43 45
@@ -54,7 +56,7 @@ jobs:
54 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 56 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1
55 57
56 # - name: 'Az CLI login' 58 # - name: 'Az CLI login'
57 # if: ${{ env.WixOfficialBuild == 'true' }} 59 # if: ${{ env.SignBuild == 'true' }}
58 # uses: azure/login@v1 60 # uses: azure/login@v1
59 # with: 61 # with:
60 # allow-no-subscriptions: true 62 # allow-no-subscriptions: true
@@ -66,11 +68,11 @@ jobs:
66 run: ./src/build_official.cmd 68 run: ./src/build_official.cmd
67 env: 69 env:
68 RuntimeTestsEnabled: true 70 RuntimeTestsEnabled: true
69 SigningKeyVaultUri: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_VAULTURI || '' }} 71 SigningKeyVaultUri: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_VAULTURI || '' }}
70 SigningTenantId: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_TENANTID || '' }} 72 SigningTenantId: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_TENANTID || '' }}
71 SigningClientId: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_CLIENTID || '' }} 73 SigningClientId: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CLIENTID || '' }}
72 SigningClientSecret: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_SECRET || '' }} 74 SigningClientSecret: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_SECRET || '' }}
73 SigningCertName: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_CERTNAME || '' }} 75 SigningCertName: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CERTNAME || '' }}
74 76
75 - name: Validate test results 77 - name: Validate test results
76 shell: cmd 78 shell: cmd
@@ -99,7 +101,7 @@ jobs:
99 101
100 # Do NOT publish logs on `official builds` (version tagged builds) as they may contain secrets in them. 102 # Do NOT publish logs on `official builds` (version tagged builds) as they may contain secrets in them.
101 - name: Save logs 103 - name: Save logs
102 if: ${{ env.WixOfficialBuild != 'true' && !cancelled() }} 104 if: ${{ env.SignBuild != 'true' && !cancelled() }}
103 uses: actions/upload-artifact@v4 105 uses: actions/upload-artifact@v4
104 with: 106 with:
105 name: logs_${{ github.run_id }} 107 name: logs_${{ github.run_id }}