Skip to content

Commit

Permalink
workflows: aarch64: Tweak for easily to extend for other non-amd64 pl…
Browse files Browse the repository at this point in the history
…atforms

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Sep 3, 2024
1 parent 6d7ae8f commit 08ed056
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,26 @@ jobs:
FLB_OPT: ${{ matrix.flb_option }}


run-qemu-aarch64-unit-tests:
run-qemu-ubuntu-unit-tests:
# We chain this after Linux one as there are CPU time costs for QEMU emulation
needs:
- run-ubuntu-unit-tests
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
arch:
- aarch64
steps:
- name: Checkout Fluent Bit code
uses: actions/checkout@v4

- name: Prepare and build with QEMU aarch64
uses: uraimo/run-on-arch-action@v2
id: aarch64-build-on-qemu-aarch64
id: build-and-test-on-qemu
with:
arch: aarch64
arch: ${{ matrix.arch }}
distro: ubuntu20.04
shell: /bin/bash
dockerRunArgs: |
Expand Down Expand Up @@ -167,7 +170,7 @@ jobs:
needs:
- run-macos-unit-tests
- run-ubuntu-unit-tests
- run-qemu-aarch64-unit-tests
- run-qemu-ubuntu-unit-tests
steps:
- name: Check build matrix status
# Ignore MacOS failures
Expand Down

0 comments on commit 08ed056

Please sign in to comment.