-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add fips dev build & msi for windows/amd64
Signed-off-by: Justin Kolberg <[email protected]>
- Loading branch information
1 parent
19619e7
commit 8e02d0b
Showing
5 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ jobs: | |
name: Build | ||
uses: ./.github/workflows/workflow-build.yml | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch_os: linux_amd64 | ||
|
@@ -103,6 +104,9 @@ jobs: | |
runs-on: macos-latest | ||
- arch_os: windows_amd64 | ||
runs-on: windows-2022 | ||
- arch_os: windows_amd64 | ||
runs-on: windows-2022 | ||
fips: true | ||
with: | ||
arch_os: ${{ matrix.arch_os }} | ||
runs-on: ${{ matrix.runs-on }} | ||
|
@@ -219,6 +223,15 @@ jobs: | |
runs-on: windows-2019 | ||
needs: | ||
- build | ||
strategy: | ||
matrix: | ||
include: | ||
- arch_os: windows_amd64 | ||
platform: x64 | ||
fips: false | ||
- arch_os: windows_amd64 | ||
platform: x64 | ||
fips: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -228,27 +241,32 @@ jobs: | |
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Fetch binary artifact for windows/amd64 | ||
- name: Fetch binary artifact for ${{ matrix.arch_os }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: otelcol-sumo-windows_amd64.exe | ||
name: otelcol-sumo${{ matrix.fips && '-fips' || '' }}-${{ matrix.arch_os }}.exe | ||
path: ./otelcolbuilder/cmd | ||
|
||
- name: Rename fips binary artifact for ${{ matrix.arch_os }} | ||
if: matrix.fips | ||
working-directory: ./otelcolbuilder/cmd | ||
run: mv otelcol-sumo-fips-${{ matrix.arch_os }}.exe otelcol-sumo-${{ matrix.arch_os }}.exe | ||
|
||
- name: Set OVERRIDE_BUILD_NUMBER | ||
run: echo "OVERRIDE_BUILD_VERSION=$GITHUB_RUN_NUMBER" >> $GITHUB_ENV | ||
|
||
- name: Set PRODUCT_VERSION | ||
run: echo "PRODUCT_VERSION=$(./ci/get_version.sh productversion)" >> $GITHUB_ENV | ||
|
||
- name: Build MSI for windows/amd64 | ||
- name: Build MSI for ${{ matrix.arch_os }} | ||
working-directory: ./packaging/msi/wix | ||
run: msbuild.exe -p:Configuration=Release -p:Platform=x64 -p:ProductVersion=$PRODUCT_VERSION -Restore | ||
run: msbuild.exe -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:ProductVersion=$PRODUCT_VERSION -p:FIPSEnabled=${{ matrix.fips }} -Restore | ||
|
||
- name: Store MSI as action artifact for windows/amd64 | ||
- name: Store MSI as action artifact for ${{ matrix.arch_os }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: windows_amd64_msi | ||
path: ./packaging/msi/wix/bin/x64/en-US/*.msi | ||
name: ${{ matrix.arch_os }}${{ matrix.fips && '_fips' || '' }}_msi | ||
path: ./packaging/msi/wix/bin/${{ matrix.platform }}/en-US/*.msi | ||
if-no-files-found: error | ||
|
||
# Triggers build_packages workflow in the sumologic-otel-collector-packaging | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//go:build boringcrypto | ||
//go:build goexperiment.boringcrypto || goexperiment.cngcrypto | ||
|
||
package main | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters