1
0
mirror of https://github.com/upx/upx synced 2025-10-05 19:20:23 +08:00
upx/.github/workflows/scan-build.yml
Markus F.X.J. Oberhumer b3e4efbabe all: misc updates
2023-05-13 16:28:44 +02:00

27 lines
1017 B
YAML

name: 'Static Analyzer - clang scan-build'
on:
schedule:
- cron: '40 4 * * 3'
workflow_dispatch:
jobs:
analyze:
strategy:
fail-fast: false
matrix: {container: ['alpine:3.16','alpine:3.17','alpine:3.18','alpine:edge','i386/alpine:edge']}
name: ${{ format('Analyze {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 bash 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
git -C upx submodule update --init
- name: 'Perform clang scan-build Analysis Debug'
run: 'make -C upx build/extra/scan-build/debug'
- name: 'Perform clang scan-build Analysis Release'
run: 'make -C upx build/extra/scan-build/release'