Build packages (on demand) #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build packages | |
# This workflow runs when any of the following occur: | |
# - Run manually | |
on: | |
workflow_dispatch: | |
inputs: | |
revision: | |
# description: | |
default: "1" | |
required: false | |
type: string | |
# ========================== | |
# Bibliography | |
# ========================== | |
# | |
# * Reusable workflows: limitations | |
# | https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations | |
# * Using matrix in reusable workflows: | |
# | https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-a-matrix-strategy-with-a-reusable-workflow | |
# * Reading input from the called workflow | |
# | https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callinputs | |
jobs: | |
version: | |
uses: ./.github/workflows/r_version.yml | |
commit_sha: | |
uses: ./.github/workflows/r_commit_sha.yml | |
build: | |
needs: [ version, commit_sha ] | |
strategy: | |
matrix: | |
distribution: [tar, rpm, deb] | |
architecture: [x64, arm64] | |
uses: ./.github/workflows/r_build.yml | |
with: | |
architecture: ${{ matrix.architecture }} | |
distribution: ${{ matrix.distribution }} | |
revision: ${{ inputs.revision }} | |
name: wazuh-indexer-min_${{ needs.version.outputs.version }}-${{ inputs.revision }}-${{ matrix.architecture }}_${{ needs.commit_sha.outputs.commit_sha }}.${{ matrix.distribution }} | |
assemble: | |
needs: [version, commit_sha, build] | |
strategy: | |
matrix: | |
distribution: [tar, rpm, deb] | |
architecture: [x64, arm64] | |
exclude: | |
# skip arm64 until we have arm runners | |
- architecture: arm64 | |
- distribution: tar | |
uses: ./.github/workflows/r_assemble.yml | |
with: | |
architecture: ${{ matrix.architecture }} | |
distribution: ${{ matrix.distribution }} | |
min: wazuh-indexer-min_${{ needs.version.outputs.version }}-${{ inputs.revision }}-${{ matrix.architecture }}_${{ needs.commit_sha.outputs.commit_sha }}.${{ matrix.distribution }} |