Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup MSI Build Workflow for Windows #139

Closed
5 of 6 tasks
Tracked by #129
vikman90 opened this issue Sep 11, 2024 · 1 comment
Closed
5 of 6 tasks
Tracked by #129

Setup MSI Build Workflow for Windows #139

vikman90 opened this issue Sep 11, 2024 · 1 comment
Assignees
Labels
level/subtask Subtask issue module/packages Agent packages type/enhancement Enhancement issue

Comments

@vikman90
Copy link
Member

vikman90 commented Sep 11, 2024

Parent Issue:

Description

This issue involves creating a GitHub Actions workflow to automate the building of MSI packages for the Wazuh agent on Windows. The workflow will target amd64 architecture, ensuring compatibility with Windows Server 2008 R2 and above.

Requirements

  • Configure GitHub Actions to build MSI packages for Windows (amd64).
  • Set up the environment using tools such as WiX Toolset to generate the installer.
  • Ensure the MSI installer properly registers the Wazuh agent as a Windows Service.
  • Ensure the workflow generates .msi files and stores them as artifacts for download.

Tasks

  • Create a GitHub Actions workflow YAML file for the MSI build process.
  • Install required dependencies such as WiX Toolset for creating MSI installers.
  • Implement steps to build an MSI installer for the Wazuh agent.
  • Store the generated .msi file as an artifact in Amazon S3.
  • Configure the workflows to trigger automatically on GitHub events like pull requests or merges to the main branch.
  • Include a manual trigger option for rebuilding the packages on-demand.
@jotacarma90
Copy link
Member

jotacarma90 commented Jan 10, 2025

Update 10/01/2025

  • I start working on the general wazuh-agent-packages workflow for the MSI generation.
  • I am making the necessary changes to the current 4.X script, packages-build-windows-agent.yml.
  • We tried to split the compile, package generation and test steps into three different jobs, to end up creating actions for each task, in order to be able to use the same compile files for several different jobs.
  • I have almost adapted the workflow to start testing, pending to create PR.

Update 13/01/2025

Update 14/01/2025

Update 15/01/2025

  • I have been working together with DevOps to test the Windows machine with all its dependencies.
  • Modifying the workflow to adapt it to these changes.
  • Troubleshooting the compiling and formatting of the workflow.
  • Investigating a bug related to the setting of the AUTOMATION_BRANCH variable in the start allocator action.
  • Investigating problems booting the Windows machine, issue open: https://github.com/wazuh/wazuh-automation/issues/2053#top

Update 16/01/2025

  • Found the problem with the automation branch in the start allocator action: https://github.com/orgs/community/discussions/25240
  • Fixed multiple errors in workflow execution.
  • We have finished preparing and checking the Windows machine of the allocator.
  • Added binary caching functionality to the Windows compilation script.
  • Added the check install, upload steps and finished the last details of the workflow.

Update 17/01/2025

Update 20/01/2025

@wazuhci wazuhci moved this to In progress in XDR+SIEM/Release 5.0.0 Jan 13, 2025
@wazuhci wazuhci moved this from In progress to Pending review in XDR+SIEM/Release 5.0.0 Jan 20, 2025
@wazuhci wazuhci moved this from Pending review to In review in XDR+SIEM/Release 5.0.0 Jan 21, 2025
@wazuhci wazuhci moved this from In review to Done in XDR+SIEM/Release 5.0.0 Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/subtask Subtask issue module/packages Agent packages type/enhancement Enhancement issue
Projects
Status: Done
Development

No branches or pull requests

2 participants