all: clang-tidy updates
This commit is contained in:
+4
-3
@@ -1,12 +1,12 @@
|
||||
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
|
||||
name: 'Static Analyzer - clang scan-build'
|
||||
name: 'Static Analyzer - clang-analyzer'
|
||||
|
||||
on:
|
||||
schedule: [cron: '20 5 * * 3'] # run weekly Wednesday 05:20 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
job-analyze-clang: # uses cmake + make
|
||||
job-analyze-clang-analyzer: # uses cmake + make
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: {container: ['alpine:3.16','alpine:3.17','alpine:3.18','alpine:edge','i386/alpine:edge']}
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
container: ${{ matrix.container }}
|
||||
steps:
|
||||
- name: ${{ format('Install packages {0}', matrix.container) }}
|
||||
run: 'apk update && apk upgrade && apk add bash clang clang-analyzer cmake g++ git make'
|
||||
run: 'apk update && apk upgrade && apk add clang clang-analyzer cmake g++ git make'
|
||||
- name: ${{ format('Check out UPX {0} source code', github.ref_name) }}
|
||||
run: |
|
||||
git clone --branch "$GITHUB_REF_NAME" --depth 1 https://github.com/upx/upx
|
||||
@@ -23,4 +23,5 @@ jobs:
|
||||
- name: 'Perform clang scan-build Analysis Debug'
|
||||
run: 'make -C upx build/extra/scan-build/debug'
|
||||
- name: 'Perform clang scan-build Analysis Release'
|
||||
if: success() || failure() # run this step even if the previous step failed
|
||||
run: 'make -C upx build/extra/scan-build/release'
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
|
||||
name: 'Static Analyzer - clang-tidy'
|
||||
|
||||
on:
|
||||
schedule: [cron: '30 5 * * 3'] # run weekly Wednesday 05:30 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
job-analyze-clang-tidy: # uses cmake + make
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: {container: ['alpine:edge','i386/alpine:edge']}
|
||||
name: ${{ format('Analyze clang-tidy {0}', matrix.container) }}
|
||||
runs-on: ubuntu-latest
|
||||
container: ${{ matrix.container }}
|
||||
steps:
|
||||
- name: ${{ format('Install packages {0}', matrix.container) }}
|
||||
run: 'apk update && apk upgrade && apk add clang clang-extra-tools cmake g++ git make'
|
||||
- name: ${{ format('Check out UPX {0} source code', github.ref_name) }}
|
||||
run: |
|
||||
git clone --branch "$GITHUB_REF_NAME" --depth 1 https://github.com/upx/upx
|
||||
git -C upx submodule update --init
|
||||
- name: 'Perform clang-tidy Analysis Debug'
|
||||
run: |
|
||||
make -C upx build/extra/clang/debug
|
||||
run-clang-tidy -p upx/build/extra/clang/debug
|
||||
- name: 'Perform clang-tidy Analysis Release'
|
||||
if: success() || failure() # run this step even if the previous step failed
|
||||
run: |
|
||||
make -C upx build/extra/clang/release
|
||||
run-clang-tidy -p upx/build/extra/clang/release
|
||||
Reference in New Issue
Block a user