-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (29 loc) · 917 Bytes
/
iwyu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: iwyu
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
includes:
name: include-what-you-use
runs-on: ubuntu-22.04-large64
strategy:
fail-fast: true
env:
docker: '1.189.0'
steps:
- name: Checkout opentxs
uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'recursive'
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-ci-${{ matrix.docker }}
- name: Setup build environment
run: |
docker pull opentransactions/downstream-ci:${{ env.docker }}
- name: Check includes
run: |
mkdir -p /tmp/opentxs
docker run --mount type=bind,src=${{ github.workspace }},dst=/usr/src/ --mount type=bind,src=/tmp/opentxs,dst=/home/output -i --entrypoint /usr/bin/run-iwyu.sh opentransactions/downstream-ci:${{ env.docker }} /usr/src/ iwyu