Skip to content

Commit

Permalink
Add arm64 architecture to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Sep 26, 2024
1 parent db3e3be commit a67e5f0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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) }}
Expand Down

0 comments on commit a67e5f0

Please sign in to comment.