|
@@ -54,17 +54,16 @@ jobs:
|
|
|
./fbt COMPACT=1 PVSNOBROWSER=1 firmware_pvs || WARNINGS=1
|
|
./fbt COMPACT=1 PVSNOBROWSER=1 firmware_pvs || WARNINGS=1
|
|
|
echo "warnings=${WARNINGS}" >> $GITHUB_OUTPUT
|
|
echo "warnings=${WARNINGS}" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- - name: 'Upload artifacts to update server'
|
|
|
|
|
|
|
+ - name: 'Upload report'
|
|
|
if: ${{ !github.event.pull_request.head.repo.fork && (steps.pvs-warn.outputs.warnings != 0) }}
|
|
if: ${{ !github.event.pull_request.head.repo.fork && (steps.pvs-warn.outputs.warnings != 0) }}
|
|
|
- run: |
|
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
|
- ssh-keyscan -p ${{ secrets.RSYNC_DEPLOY_PORT }} -H ${{ secrets.RSYNC_DEPLOY_HOST }} > ~/.ssh/known_hosts
|
|
|
|
|
- echo "${{ secrets.RSYNC_DEPLOY_KEY }}" > deploy_key;
|
|
|
|
|
- chmod 600 ./deploy_key;
|
|
|
|
|
- rsync -avrzP --mkpath \
|
|
|
|
|
- -e 'ssh -p ${{ secrets.RSYNC_DEPLOY_PORT }} -i ./deploy_key' \
|
|
|
|
|
- build/f7-firmware-DC/pvsreport/ ${{ secrets.RSYNC_DEPLOY_USER }}@${{ secrets.RSYNC_DEPLOY_HOST }}:/home/data/firmware-pvs-studio-report/"${BRANCH_NAME}/${{steps.names.outputs.default_target}}-${{steps.names.outputs.suffix}}/";
|
|
|
|
|
- rm ./deploy_key;
|
|
|
|
|
|
|
+ uses: prewk/s3-cp-action@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ aws_s3_endpoint: "${{ secrets.PVS_AWS_ENDPOINT }}"
|
|
|
|
|
+ aws_access_key_id: "${{ secrets.PVS_AWS_ACCESS_KEY }}"
|
|
|
|
|
+ aws_secret_access_key: "${{ secrets.PVS_AWS_SECRET_KEY }}"
|
|
|
|
|
+ source: "./build/f7-firmware-DC/pvsreport"
|
|
|
|
|
+ dest: "s3://${{ secrets.PVS_AWS_BUCKET }}/${{steps.names.outputs.branch_name}}/${{steps.names.outputs.default_target}}-${{steps.names.outputs.suffix}}/"
|
|
|
|
|
+ flags: "--recursive --acl public-read"
|
|
|
|
|
|
|
|
- name: 'Find Previous Comment'
|
|
- name: 'Find Previous Comment'
|
|
|
if: ${{ !github.event.pull_request.head.repo.fork && github.event.pull_request && (steps.pvs-warn.outputs.warnings != 0) }}
|
|
if: ${{ !github.event.pull_request.head.repo.fork && github.event.pull_request && (steps.pvs-warn.outputs.warnings != 0) }}
|
|
@@ -83,7 +82,7 @@ jobs:
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
body: |
|
|
body: |
|
|
|
**PVS-Studio report for commit `${{steps.names.outputs.commit_sha}}`:**
|
|
**PVS-Studio report for commit `${{steps.names.outputs.commit_sha}}`:**
|
|
|
- - [Report](https://update.flipperzero.one/builds/firmware-pvs-studio-report/${{steps.names.outputs.branch_name}}/${{steps.names.outputs.default_target}}-${{steps.names.outputs.suffix}}/index.html)
|
|
|
|
|
|
|
+ - [Report](https://pvs.flipp.dev/${{steps.names.outputs.branch_name}}/${{steps.names.outputs.default_target}}-${{steps.names.outputs.suffix}}/index.html)
|
|
|
edit-mode: replace
|
|
edit-mode: replace
|
|
|
|
|
|
|
|
- name: 'Raise exception'
|
|
- name: 'Raise exception'
|