summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-02-12 14:05:58 -0800
committerRob Mensching <rob@firegiant.com>2025-02-12 15:09:03 -0800
commitf18144534d698e4a0d4349a310b883ee9272e4ed (patch)
treefc34447ed5248e01b2e133953b2da5accf42a701
parentf313b4ceea8f9aebe70ef15930bd380106fa2172 (diff)
downloadwix-6.0.0-rc.1.tar.gz
wix-6.0.0-rc.1.tar.bz2
wix-6.0.0-rc.1.zip
Update CI build to follow SomeVerv6.0.0-rc.1
-rw-r--r--.github/workflows/build.yml45
1 files changed, 24 insertions, 21 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 602a4817..36e0583c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,7 +4,8 @@ on:
4 push: 4 push:
5 branches: 5 branches:
6 - main 6 - main
7 - master 7 tags:
8 - v**
8 pull_request: 9 pull_request:
9 branches: 10 branches:
10 - main 11 - main
@@ -20,6 +21,8 @@ jobs:
20 build: 21 build:
21 name: Build 22 name: Build
22 runs-on: windows-2022 23 runs-on: windows-2022
24 env:
25 WixOfficialBuild: ${{ github.repository_owner == 'wixtoolset' && startsWith(github.ref, 'refs/tags/v') }}
23 permissions: 26 permissions:
24 packages: write 27 packages: write
25 id-token: write 28 id-token: write
@@ -34,9 +37,9 @@ jobs:
34 # run: ./src/vs_config.cmd 37 # run: ./src/vs_config.cmd
35 38
36 - name: Install sign tool 39 - name: Install sign tool
37 if: (github.ref == 'refs/heads/master') 40 if: ${{ env.WixOfficialBuild == 'true' }}
38 shell: cmd 41 shell: cmd
39 run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.24529.1 42 run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.24170.3
40 43
41 - name: Configure automated logging and crash dumps 44 - name: Configure automated logging and crash dumps
42 shell: cmd 45 shell: cmd
@@ -50,24 +53,24 @@ jobs:
50 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f 53 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f
51 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 54 reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1
52 55
53 - name: 'Az CLI login' 56 # - name: 'Az CLI login'
54 if: (github.ref == 'refs/heads/master') 57 # if: ${{ env.WixOfficialBuild == 'true' }}
55 uses: azure/login@v1 58 # uses: azure/login@v1
56 with: 59 # with:
57 allow-no-subscriptions: true 60 # allow-no-subscriptions: true
58 client-id: ${{ secrets.WIX_SIGNING_CLIENTID }} 61 # client-id: ${{ secrets.WIX_SIGNING_CLIENTID }}
59 tenant-id: ${{ secrets.WIX_SIGNING_TENANTID }} 62 # tenant-id: ${{ secrets.WIX_SIGNING_TENANTID }}
60 63
61 - name: Build wix6 64 - name: Build wix6
62 shell: cmd 65 shell: cmd
63 run: ./src/build_official.cmd 66 run: ./src/build_official.cmd
64 env: 67 env:
65 RuntimeTestsEnabled: true 68 RuntimeTestsEnabled: true
66 SigningKeyVaultUri: ${{ github.ref == 'refs/heads/master' && secrets.WIX_SIGNING_VAULTURI || '' }} 69 SigningKeyVaultUri: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_VAULTURI || '' }}
67 SigningTenantId: ${{ github.ref == 'refs/heads/master' && secrets.WIX_SIGNING_TENANTID || '' }} 70 SigningTenantId: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_TENANTID || '' }}
68 SigningClientId: ${{ github.ref == 'refs/heads/master' && secrets.WIX_SIGNING_CLIENTID || '' }} 71 SigningClientId: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_CLIENTID || '' }}
69 SigningClientSecret: ${{ github.ref == 'refs/heads/master' && secrets.WIX_SIGNING_SECRET || '' }} 72 SigningClientSecret: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_SECRET || '' }}
70 SigningCertName: ${{ github.ref == 'refs/heads/master' && secrets.WIX_SIGNING_CERTNAME || '' }} 73 SigningCertName: ${{ env.WixOfficialBuild == 'true' && secrets.WIX_SIGNING_CERTNAME || '' }}
71 74
72 - name: Validate test results 75 - name: Validate test results
73 shell: cmd 76 shell: cmd
@@ -80,28 +83,28 @@ jobs:
80 path: build/artifacts/ 83 path: build/artifacts/
81 84
82 - name: Collect integration test logs 85 - name: Collect integration test logs
83 if: always() 86 if: ${{ !cancelled() }}
84 shell: cmd 87 shell: cmd
85 run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log" 88 run: 7z a "build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log"
86 89
87 - name: Export Application event log 90 - name: Export Application event log
88 if: always() 91 if: ${{ !cancelled() }}
89 shell: cmd 92 shell: cmd
90 run: wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" 93 run: wevtutil epl Application build\logs\Application.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
91 94
92 - name: Export System event log 95 - name: Export System event log
93 if: always() 96 if: ${{ !cancelled() }}
94 shell: cmd 97 shell: cmd
95 run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]" 98 run: wevtutil epl System build\logs\System.evtx /q:"Event/System/TimeCreated[timediff(@SystemTime) <= 86400000]"
96 99
97 # Do NOT publish logs on `master` branch as they may contain secrets in them. 100 # Do NOT publish logs on `official builds` (version tagged builds) as they may contain secrets in them.
98 - name: Save logs 101 - name: Save logs
99 if: github.ref != 'refs/heads/master' && always() 102 if: ${{ env.WixOfficialBuild != 'true' && !cancelled() }}
100 uses: actions/upload-artifact@v4 103 uses: actions/upload-artifact@v4
101 with: 104 with:
102 name: logs_${{ github.run_id }} 105 name: logs_${{ github.run_id }}
103 path: build/logs/ 106 path: build/logs/
104 107
105 - name: Push to GitHub Packages 108 - name: Push to GitHub Packages
106 if: github.event_name == 'push' && github.repository_owner == 'wixtoolset' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') 109 if: ${{ github.event_name == 'push' && github.repository_owner == 'wixtoolset' && (env.WixOfficialBuild == 'true' || github.ref == 'refs/heads/main') }}
107 run: dotnet nuget push "build/artifacts/**/*.nupkg" --source https://nuget.pkg.github.com/wixtoolset/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate 110 run: dotnet nuget push "build/artifacts/**/*.nupkg" --source https://nuget.pkg.github.com/wixtoolset/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate