Skip to content

Commit

Permalink
CI: enable matrix strategy for testing single-backend builds
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Richter <[email protected]>
  • Loading branch information
erichte-ibm committed Aug 23, 2023
1 parent 9a64db8 commit 9dd860c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/x86_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: ['push', 'pull_request']

jobs:
makefile:
strategy:
matrix:
backend: ["", "GUEST_BACKEND=0", "HOST_BACKEND=0"]

runs-on: ubuntu-latest

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 9dd860c

Please sign in to comment.