Skip to content

Commit

Permalink
Test github action with matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Jun 21, 2024
1 parent 7ebfb77 commit ef7fb86
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/runtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ permissions:

jobs:
CI_test_run:
strategy:
fail-fast: false
matrix:
compiler: [AC6, GCC, CLANG]
runs-on: ubuntu-latest

steps:
Expand All @@ -30,6 +34,8 @@ jobs:
- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
cache: "-${{ matrix.compiler }}"

- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
Expand Down Expand Up @@ -69,18 +75,18 @@ jobs:
cd Testing/cmsis_build
echo "Running tests"
python runall.py -avh $AVH_FVP_PLUGINS/../bin
python runall.py -g ${{ matrix.compiler }} -avh $AVH_FVP_PLUGINS/../bin
- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: test-report
path: Testing/cmsis_build/summary.html
name: test-report_${{ matrix.compiler }}
path: Testing/cmsis_build/summary_${{ matrix.compiler }}.html


- name: Check error
run: |
cd Testing/cmsis_build
echo "Checking output..."
test "$(grep "Error" summary.html | wc -l)" -eq 0
test "$(grep "Error" summary_${{ matrix.compiler }}.html | wc -l)" -eq 0

0 comments on commit ef7fb86

Please sign in to comment.