Skip to content

Commit

Permalink
Build and run coverity inside RUNNER_TEMP (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 authored Dec 2, 2024
1 parent ff74240 commit 98b6ecb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ jobs:

- name: Download Coverity
run: |
wget --quiet https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=pth_06" -O ${{ env.COVERITY }}.tgz
mkdir -p ${{ env.COVERITY }}
tar zxvf ${{ env.COVERITY }}.tgz -C ${{ env.COVERITY }} --strip-components 1
wget --quiet https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=pth_06" -O ${{ env.RUNNER_TEMP }}/${{ env.COVERITY }}.tgz
mkdir -p ${{ env.RUNNER_TEMP }}/${{ env.COVERITY }}
tar zxvf ${{ env.RUNNER_TEMP }}/${{ env.COVERITY }}.tgz -C ${{ env.RUNNER_TEMP }}/${{ env.COVERITY }} --strip-components 1
- name: Compile Coverity
run: |
${{ env.COVERITY }}/bin/cov-configure --java
${{ env.COVERITY }}/bin/cov-build --dir cov-int mvn -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= -DskipTests=true clean compile
tar czvf pth_06.tgz cov-int
${{ env.RUNNER_TEMP }}/${{ env.COVERITY }}/bin/cov-configure --java
${{ env.RUNNER_TEMP }}/${{ env.COVERITY }}/bin/cov-build --dir ${{ env.RUNNER_TEMP }}/cov-int mvn -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= -DskipTests=true clean compile
tar czvf ${{ env.RUNNER_TEMP }}/pth_06.tgz ${{ env.RUNNER_TEMP }}/cov-int
- name: Debug find src contents
run: find src/ -exec ls -l {} \;
Expand All @@ -95,12 +95,16 @@ jobs:
run: du -sh pth_06.tgz
- name: Debug find cov-int
run: find cov-int
- name: Debug search ${{ env.RUNNER_TEMP }}
run: find ${{ env.RUNNER_TEMP }} -exec ls -l {} \;
- name: Debug size ${{ env.RUNNER_TEMP }}
run: du -sh ${{ env.RUNNER_TEMP }}/*

- name: Upload to Coverity
run: |
curl --silent --form token=${{ secrets.COVERITY_TOKEN }} \
--form email=${{ secrets.COVERITY_EMAIL }} \
--form file=@pth_06.tgz \
--form file=@${{ env.RUNNER_TEMP }}/pth_06.tgz \
--form version="${GITHUB_REF##*/}" \
--form description="automated upload" \
https://scan.coverity.com/builds?project=pth_06

0 comments on commit 98b6ecb

Please sign in to comment.