| 1 |
name: Mac OS X scan-build |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
|
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
|
| 15 |
runs-on: macOS-13 |
| 16 |
|
| 17 |
steps: |
| 18 |
- name: Harden Runner |
| 19 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 20 |
with: |
| 21 |
egress-policy: audit |
| 22 |
|
| 23 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 24 |
with: |
| 25 |
submodules: recursive |
| 26 |
- name: cmake |
| 27 |
run: | |
| 28 |
rm -rf ${{ github.workspace }}/build |
| 29 |
$(brew --prefix llvm@15)/bin/scan-build cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} |
| 30 |
- name: make |
| 31 |
run: | |
| 32 |
cd ${{ github.workspace }}/build |
| 33 |
$(brew --prefix llvm@15)/bin/scan-build --exclude src/simdjson --status-bugs make -j |