diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 654154bf5d925..390fd405cd650 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,7 +123,9 @@ jobs: fail-fast: false matrix: plugins: ["setup", "command-manager"] - runs-on: ubuntu-22.04 + architecture: ${{ fromJson(needs.matrix.outputs.matrix.architecture) }} + needs: [matrix] + runs-on: ${{ matrix.architecture == 'arm64' && 'wz-linux-arm64' || 'ubuntu-22.04' }} env: plugin_name: wazuh-indexer-${{ matrix.plugins }} steps: @@ -160,7 +162,11 @@ jobs: build-reporting-plugin: if: ${{ inputs.reporting_plugin_ref != '' }} - runs-on: ubuntu-22.04 + needs: [matrix] + runs-on: ${{ matrix.architecture == 'arm64' && 'wz-linux-arm64' || 'ubuntu-22.04' }} + strategy: + fail-fast: false + matrix: ${{ fromJson(needs.matrix.outputs.matrix) }} env: plugin_name: wazuh-indexer-reports-scheduler steps: @@ -195,7 +201,7 @@ jobs: build: needs: [matrix, build-wazuh-plugins, build-reporting-plugin] - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.architecture == 'arm64' && 'wz-linux-arm64' || 'ubuntu-22.04' }} strategy: fail-fast: false matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}