| 1 |
name: FreeBSD clang-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: ubuntu-24.04 |
| 16 |
|
| 17 |
steps: |
| 18 |
- name: Harden Runner |
| 19 |
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.0 |
| 20 |
with: |
| 21 |
egress-policy: audit |
| 22 |
|
| 23 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 24 |
with: |
| 25 |
submodules: recursive |
| 26 |
- name: clang scan build in FreeBSD VM |
| 27 |
id: clang-scan-build |
| 28 |
uses: cross-platform-actions/action@cdc9ee69ef84a5f2e59c9058335d9c57bcb4ac86 # v0.25.0 |
| 29 |
with: |
| 30 |
memory: 2048 |
| 31 |
shell: sh |
| 32 |
operating_system: freebsd |
| 33 |
version: '14.1' |
| 34 |
run: | |
| 35 |
sudo mkdir -p /usr/local/etc/pkg/repos |
| 36 |
sudo sh -c 'echo "FreeBSD: { url: \"https://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf' |
| 37 |
sudo pkg update -f |
| 38 |
sudo pkg upgrade -y |
| 39 |
sudo pkg install -y curl gmake cmake devel/llvm llvm |
| 40 |
pwd |
| 41 |
ls -lah |
| 42 |
whoami |
| 43 |
env |
| 44 |
freebsd-version |
| 45 |
scan-build cmake -B build -DCMAKE_INSTALL_PREFIX=. |
| 46 |
cd build |
| 47 |
scan-build --exclude src/simdjson --status-bugs gmake |