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 PKG Build Workflow for macOS #137

Open
5 tasks done
Tracked by #129
vikman90 opened this issue Sep 11, 2024 · 1 comment · May be fixed by #431 or #448
Open
5 tasks done
Tracked by #129

Setup PKG Build Workflow for macOS #137

vikman90 opened this issue Sep 11, 2024 · 1 comment · May be fixed by #431 or #448
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 focuses on creating a GitHub Actions workflow to automate the building of PKG packages for the Wazuh agent on macOS 14+. The workflow will target both Intel and Apple Silicon architectures.

Requirements

  • Configure GitHub Actions to build PKG packages for macOS 14+.
  • Set up the environment using tools like pkgbuild to create PKG installers.
  • Target both Intel and Apple Silicon architectures.
  • Ensure the PKG installer sets up the Wazuh agent as a launch daemon.
  • Ensure the workflow generates .pkg files and stores them as artifacts for download.

Tasks

  • Create a GitHub Actions workflow YAML file for the PKG build process.
  • Install necessary tools for building PKG installers.
  • Implement steps to build the Wazuh agent PKG installer for both target architectures.
  • Store the generated .pkg files as artifacts in the proper Amazon S3 bucket.
  • Include a manual trigger option for rebuilding the packages on-demand.
@mjcr99
Copy link
Member

mjcr99 commented Dec 4, 2024

Update

(04/12/2024) Analyzing workflow structure and ways to improve it.
(05/12/2024) Changing workflow structure to better modularize it steps. Dealing with problems regarding mac os sonoma machine usage.
(11/12/2024) Developing packaging job and trying to use composite actions to deal with allocator.
(12/12/2024) Divided workflow into 3 different jobs, source build, packaging, and package testing. Successfully using composite actions to deal with allocator. Still pending to test the entire workflow.
(13/12/2024) Workflow almost fully functional. Pending solve some minor details regarding checksum.
(16/12/2024) Workflow fully functional for the tested intel64 arch, pending to add the ARM machines to test this arch.
(17/12/2024) Updated PRs with requested changes and required improvements. Succesfully tested intel64 architecture, but found problems while compiling with arm64. This issue will be investigated, seems to be related to a lack of dependencies.
(18/12/2024) Solved signing problems and solved the problem with arm64 machine, the fix is pending to be implemented by the DevOps team. Several tests run with intel64, and everything working properly.
(19/12/2024) Developing a triggerable workflow to build a package as a PR check.

@mjcr99 mjcr99 linked a pull request Dec 16, 2024 that will close this issue
@mjcr99 mjcr99 linked a pull request Dec 16, 2024 that will close this issue
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Dec 16, 2024
@wazuhci wazuhci moved this from Pending review to In progress in Release 5.0.0 Dec 17, 2024
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Dec 18, 2024
@mjcr99 mjcr99 linked a pull request Dec 19, 2024 that will close this issue
@mjcr99 mjcr99 linked a pull request Dec 19, 2024 that will close this issue
@wazuhci wazuhci moved this from Pending review to Blocked in Release 5.0.0 Dec 23, 2024
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: Blocked
2 participants