diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 6f8e6205d..296e3492c 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -1,4 +1,4 @@ -name: Lint +name: Tidy on: [push] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 000000000..93a506e6a --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,26 @@ +name: Static + +on: [push] + +jobs: + clang-static: + - name: "Check out repository" + uses: actions/checkout@v4 + + # Prepare a build + - name: "Prepare build" + run: | + aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh + ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DCMAKE_EXPORT_COMPILE_COMMANDS=ON + + # Run the analysis + - uses: whisperity/codechecker-analysis-action@v1 + id: codechecker + with: + logfile: ${{ github.workspace }}/compile_commands.json + + # Upload the results to the CI. + - uses: actions/upload-artifact@v2 + with: + name: "CodeChecker Bug Reports" + path: ${{ steps.codechecker.outputs.result-html-dir }}