From 9e4873789df1dedf5e3880e2766b7d16041422e0 Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Sun, 22 Oct 2023 01:08:15 +0530 Subject: [PATCH] add CI checks for coverity --- .github/workflows/coverity_scan.yml | 39 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/coverity_scan.yml b/.github/workflows/coverity_scan.yml index 4ad87790510..3eba04ff53d 100644 --- a/.github/workflows/coverity_scan.yml +++ b/.github/workflows/coverity_scan.yml @@ -7,25 +7,25 @@ jobs: name: Native GCC runs-on: ubuntu-latest steps: - # - name: Checkout the FreeRTOS/FreeRTOS Repository - # uses: actions/checkout@v3 - # with: - # ref: main - # repository: FreeRTOS/FreeRTOS - # submodules: 'recursive' - # fetch-depth: 1 + - name: Checkout the FreeRTOS/FreeRTOS Repository + uses: actions/checkout@v3 + with: + ref: main + repository: FreeRTOS/FreeRTOS + submodules: 'recursive' + fetch-depth: 1 - # # Checkout user pull request changes - # - name: Checkout Pull Request - # uses: actions/checkout@v3 - # with: - # path: ./FreeRTOS/Source + # Checkout user pull request changes + - name: Checkout Pull Request + uses: actions/checkout@v3 + with: + path: ./FreeRTOS/Source - # - name: Install GCC - # shell: bash - # run: | - # sudo apt-get -y update - # sudo apt-get -y install build-essential + - name: Install GCC + shell: bash + run: | + sudo apt-get -y update + sudo apt-get -y install build-essential - name: Install Coverity Build shell: bash @@ -37,8 +37,7 @@ jobs: - name: Build Posix_GCC Demo shell: bash + working-directory: FreeRTOS/Demo/Posix_GCC run: | export PATH="$PATH:${{env.cov_scan_path}}" - cd FreeRTOS/Demo/Posix_GCC - cov-build - # cov-build --dir cov-int make -j \ No newline at end of file + cov-build --dir cov-int make -j \ No newline at end of file