Skip to content

Commit

Permalink
add required fake-prerelease inputs for nrjmx based integrations (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigilioso authored Feb 5, 2024
1 parent bf870b7 commit 63f8fb6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/_test_build_fake_prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
integration:
required: true
type: string
goarch_matrix:
required: true
type: string
download_nrjmx:
required: false
type: boolean
default: false
secrets:
OHAI_PFX_CERTIFICATE_BASE64:
required: true
Expand Down Expand Up @@ -52,7 +59,7 @@ jobs:
working-directory: src/github.com/${{ github.event.repository.full_name }}
strategy:
matrix:
goarch: [ amd64,386 ]
goarch: ${{ fromJSON(inputs.goarch_matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -79,6 +86,12 @@ jobs:
- name: Extract .exe
shell: pwsh
run: build\windows\extract_exe.ps1 "$env:INTEGRATION" ${{ matrix.goarch }} "$env:TAG"

- name: Download nrjmx
if: ${{ inputs.download_nrjmx }}
shell: bash
run: build/windows/download_nrjmx.sh

- name: Create MSI
shell: pwsh
run: build\windows\package_msi.ps1 -integration "$env:INTEGRATION" -arch ${{ matrix.goarch }} -tag "$env:TAG" -pfx_passphrase "$env:PFX_PASSPHRASE" -pfx_certificate_description "$env:PFX_CERTIFICATE_DESCRIPTION"
10 changes: 10 additions & 0 deletions .github/workflows/reusable_push_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ on:
required: false
type: boolean
default: false
fake_prerelease_goarch_matrix:
required: false
type: string
default: '["amd64", "386"]'
fake_prerelease_download_nrjmx:
required: false
type: boolean
default: false
secrets:
OHAI_PFX_CERTIFICATE_BASE64:
required: false
Expand Down Expand Up @@ -58,3 +66,5 @@ jobs:
OHAI_PFX_PASSPHRASE: ${{ secrets.OHAI_PFX_PASSPHRASE }}
with:
integration: ${{ inputs.integration }}
goarch_matrix: ${{ inputs.fake_prerelease_goarch_matrix }}
download_nrjmx: ${{ inputs.fake_prerelease_download_nrjmx }}

0 comments on commit 63f8fb6

Please sign in to comment.