From 9dd860c392715f0e6b381a8c34993b7f6a85b507 Mon Sep 17 00:00:00 2001 From: Eric Richter Date: Wed, 23 Aug 2023 13:21:02 -0500 Subject: [PATCH] CI: enable matrix strategy for testing single-backend builds Signed-off-by: Eric Richter --- .github/workflows/x86_CI.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/x86_CI.yml b/.github/workflows/x86_CI.yml index 4cd8fdf8..c3faee20 100644 --- a/.github/workflows/x86_CI.yml +++ b/.github/workflows/x86_CI.yml @@ -4,6 +4,9 @@ on: ['push', 'pull_request'] jobs: makefile: + strategy: + matrix: + backend: ["", "GUEST_BACKEND=0", "HOST_BACKEND=0"] runs-on: ubuntu-latest @@ -16,9 +19,12 @@ jobs: run: sudo apt-get update && sudo apt-get install -y openssl libssl-dev libmbedtls-dev - name: run test cases - run: make check + run: make ${{ matrix.backend }} check cmake: + strategy: + matrix: + backend: ["", "-DGUEST_BACKEND=0", "-DHOST_BACKEND=0"] runs-on: ubuntu-latest @@ -31,7 +37,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y openssl libssl-dev libmbedtls-dev cmake - name: generate cmake build - run: cmake -Bbuild . -DUSE_ASAN=ON -DCMAKE_BUILD_TYPE=Debug + run: cmake -Bbuild . -DUSE_ASAN=ON -DCMAKE_BUILD_TYPE=Debug ${{ matrix.backend }} - name: run cmake build run: cmake --build build