Skip to content

Commit 0ad332d

Browse files
Fix Windows MSI Build Step (#752)
1 parent 41311cb commit 0ad332d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ commands:
2727
parameters:
2828
files:
2929
type: string
30-
# TODO: Add dist/otel-collector-*amd64.msi back
3130
default: |
3231
bin/otelcontribcol_darwin_amd64
3332
bin/otelcontribcol_linux_arm64
@@ -37,6 +36,7 @@ commands:
3736
dist/otel-contrib-collector_*_amd64.deb
3837
dist/otel-contrib-collector-*.x86_64.rpm
3938
dist/otel-contrib-collector_*_arm64.deb
39+
dist/otel-contrib-collector-*amd64.msi
4040
steps:
4141
- run:
4242
name: Check if files exist
@@ -192,13 +192,20 @@ workflows:
192192
filters:
193193
tags:
194194
only: /.*/
195+
- windows-msi:
196+
requires:
197+
- cross-compile
198+
filters:
199+
tags:
200+
only: /.*/
195201
- publish-check:
196202
requires:
197203
- lint
198204
- unit-tests
199205
- integration-tests
200206
- cross-compile
201207
- loadtest
208+
- windows-msi
202209
- deb-package
203210
- rpm-package
204211
- publish-stable:
@@ -208,6 +215,7 @@ workflows:
208215
- integration-tests
209216
- cross-compile
210217
- loadtest
218+
- windows-msi
211219
- deb-package
212220
- rpm-package
213221
filters:

internal/buildscripts/packaging/msi/make.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Makefile like build commands for the Collector on Windows.
1818
1919
Usage: .\make.ps1 <Command> [-<Param> <Value> ...]
20-
Example: .\make.ps1 New-MSI -Config "./my-config.yaml"
20+
Example: .\make.ps1 New-MSI -Config "./my-config.yaml" -Version "v0.0.2"
2121
.PARAMETER Target
2222
Build target to run (Install-Tools, New-MSI)
2323
#>
@@ -28,6 +28,12 @@ Param(
2828
$ErrorActionPreference = "Stop"
2929

3030
function Install-Tools {
31+
# disable progress bar support as this causes CircleCI to crash
32+
$OriginalPref = $ProgressPreference
33+
$ProgressPreference = "SilentlyContinue"
34+
Install-WindowsFeature Net-Framework-Core
35+
$ProgressPreference = $OriginalPref
36+
3137
choco install wixtoolset -y
3238
setx /m PATH "%PATH%;C:\Program Files (x86)\WiX Toolset v3.11\bin"
3339
refreshenv

0 commit comments

Comments
 (0)