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

Allow reusing precompiled repository to build packages and migrate packages WF #448

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

mjcr99
Copy link
Member

@mjcr99 mjcr99 commented Dec 19, 2024

Related issue
#460

Description

Hi team,

this PR brings changes in the following areas:

  • Packages building precompiled repository reuse:

    • Now the package building process can detect if the provided repository to compile is already built, and it will reuse the binaries to directly build the package avoiding recompilation.
    • It enables the possibility for the Linux systems to build the binaries under only a platform, for example, Centos 7, and reuse the generated binaries both for RPM and DEB packages, avoiding compiling the code for each Linux platform.
  • Mac OS packages workflow split:

    • Now Mac OS packages can be built using GHA runners directly from this repository, whiout being signed.
    • Binaries building and package testing stages are reused from the newly introduced workflows, reducing the code to be maintained.
  • Linux, Windows and Mac OS workflows:

    • Testing packages are able to be built directly from this repository, letting us test the package building as a PR check and use generated packages for other testing purposes.
  • Sources installation command:

    • Now when then binaries have been built in the build folder, to install them, it's required to run cmake --install . --prefix /. Otherwise the installation path may not be correct.

Tests:

🟢 MACOS INTEL64

gh workflow run packages-build-macos-agent.yml -r enhancement/137-pkg-build-trigger -f architecture=intel64 -f source_reference=enhancement/137-pkg-build-trigger -f revision=3 -f is_stage=false -f checksum=true

Triggered WF: https://github.com/wazuh/wazuh-agent/actions/runs/13235992673
🟢 MACOS ARM64

gh workflow run packages-build-macos-agent.yml -r enhancement/137-pkg-build-trigger -f architecture=arm64 -f source_reference=enhancement/137-pkg-build-trigger -f revision=3 -f is_stage=false -f checksum=true

Triggered WF: https://github.com/wazuh/wazuh-agent/actions/runs/13235994748
🟢 LINUX RPM - DEB

gh workflow run packages-build-linux-agent.yml -r enhancement/137-pkg-build-trigger -f architecture=amd64 -f source_reference=enhancement/137-pkg-build-trigger -f revision=3 -f is_stage=false -f checksum=true -f system=both -f extensive_testing=true

Triggered WF: https://github.com/wazuh/wazuh-agent/actions/runs/13235996337

🟢 WINDOWS - MSI

gh workflow run packages-build-windows-agent.yml -r enhancement/137-pkg-build-trigger -f source_reference=enhancement/137-pkg-build-trigger -f revision=3 -f checksum=true

Triggered WF: https://github.com/wazuh/wazuh-agent/actions/runs/13329326913

@mjcr99 mjcr99 linked an issue Dec 19, 2024 that may be closed by this pull request
5 tasks
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 4 times, most recently from 3f1a955 to d60d825 Compare December 19, 2024 12:30
@mjcr99 mjcr99 mentioned this pull request Dec 19, 2024
5 tasks
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 3 times, most recently from 4573a7f to bc3e38a Compare December 20, 2024 09:50
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 11 times, most recently from af37d96 to 23e22d9 Compare January 21, 2025 12:14
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 4 times, most recently from c9ad13d to 751fe30 Compare January 30, 2025 11:49
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 4 times, most recently from 9efe41f to fa5b614 Compare January 31, 2025 12:48
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 3 times, most recently from b74785e to c94e65c Compare February 12, 2025 14:52
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 3 times, most recently from 2151dfa to 8455a06 Compare February 13, 2025 13:02
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch 7 times, most recently from 10a5229 to 99b4795 Compare February 14, 2025 10:36
@mjcr99 mjcr99 force-pushed the enhancement/137-pkg-build-trigger branch from 99b4795 to 8845d02 Compare February 14, 2025 10:51
@mjcr99 mjcr99 changed the title Allow reusing precompiled repository to build packages Allow reusing precompiled repository to build packages and migrate packages WF Feb 14, 2025
@MarcelKemp MarcelKemp self-requested a review February 18, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants