Skip to content

[chore][CICD] More reusable workflow organization #4

[chore][CICD] More reusable workflow organization

[chore][CICD] More reusable workflow organization #4

Workflow file for this run

name: msi-build
on:
workflow_call:
inputs:
OS:
required: true
type: string
SYS_BINARY:
required: true
type: string
env:
GO_VERSION: 1.23.10
jobs:
cross-compile:
uses: ./.github/workflows/reusable/compile.yml

Check failure on line 18 in .github/workflows/msi-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/msi-build.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
SYS_BINARY: ${{ inputs.SYS_BINARY }}
agent-bundle-windows:
uses: ./.github/workflows/reusable/agent-bundle-windows.yml
with:
OS: ${{ inputs.OS }}
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
msi-custom-actions:
uses: ./.github/workflows/reusable/msi-custom-actions.yml
with:
OS: ${{ inputs.OS }}
msi-build:
needs: [ cross-compile, agent-bundle-windows, msi-custom-actions ]
runs-on: ubuntu-24.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
- name: Downloading binaries-windows_amd64
uses: actions/download-artifact@v4
with:
name: binaries-windows_amd64
path: ./bin
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: '**/go.sum'
- name: Downloading agent-bundle-windows
uses: actions/download-artifact@v4
with:
name: agent-bundle-windows-${{ inputs.OS }}
path: ./dist
- name: Downloading msi-custom-actions
uses: actions/download-artifact@v4
with:
name: msi-custom-actions
path: ./packaging/msi/SplunkCustomActions/bin/Release
- name: Build MSI
run: |
mkdir -p dist
make msi SKIP_COMPILE=true VERSION=""
- name: Uploading msi build artifacts
uses: actions/upload-artifact@v4
with:
name: msi-build-${{ inputs.OS }}
path: ./dist/*.msi