From 7aa8ee443adcaddbfe0970323d7d88fa49bdd479 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Wed, 7 Feb 2024 14:52:28 +0000 Subject: [PATCH] fix(ci): correctly handle job matrix Signed-off-by: Roberto Scolaro --- .github/workflows/e2e_ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e_ci.yml b/.github/workflows/e2e_ci.yml index a5befaccd1b..4aa1971ae55 100644 --- a/.github/workflows/e2e_ci.yml +++ b/.github/workflows/e2e_ci.yml @@ -20,13 +20,7 @@ jobs: strategy: matrix: arch: [amd64, arm64] - include: - - name: kmod - option: -k - - name: bpf - option: -b - - name: modern-bpf - option: -m + driver: [ {name: kmod, option: -k}, {name: bpf, option: -b}, {name: modern-bpf, option: -m} ] fail-fast: false steps: - name: Checkout Libs โคต๏ธ @@ -61,10 +55,10 @@ jobs: cd build && cmake -DUSE_BUNDLED_DEPS=ON -DENABLE_LIBSINSP_TESTS=ON -DBUILD_LIBSCAP_MODERN_BPF=ON -DBUILD_BPF=ON -DBUILD_LIBSCAP_GVISOR=OFF ../ make -j6 - - name: Run e2e tests with ${{ matrix.name }} ๐ŸŽ๏ธ + - name: Run e2e tests with ${{ matrix.driver.name }} ๐ŸŽ๏ธ run: | cd build/test/libsinsp/ - sudo ./libsinsp_e2e_tests ${{ matrix.option }} + sudo ./libsinsp_e2e_tests ${{ matrix.driver.option }} build-drivers-s390x-ppc64le: name: build-drivers-${{ matrix.arch }} ๐Ÿ˜ (system_deps)