-
Notifications
You must be signed in to change notification settings - Fork 116
29 lines (27 loc) · 1.1 KB
/
check-clang-tidy-llpc.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
name: Code style check
on:
pull_request:
jobs:
clang-tidy:
name: clang-tidy
runs-on: "ubuntu-22.04"
steps:
- name: Checkout LLPC
run: |
git clone https://github.com/${GITHUB_REPOSITORY}.git .
git fetch origin +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok
git checkout ${GITHUB_SHA}
- name: Generate Docker base image tag string
run: |
echo "IMAGE_TAG=amdvlkadmin/amdvlk_release_clang:nightly" \
| tee -a $GITHUB_ENV
- name: Fetch the latest prebuilt AMDVLK
run: docker pull "$IMAGE_TAG"
- name: Build and Test with Docker
run: docker build . --file docker/llpc-clang-tidy.Dockerfile
--build-arg AMDVLK_IMAGE="$IMAGE_TAG"
--build-arg LLPC_REPO_NAME="${GITHUB_REPOSITORY}"
--build-arg LLPC_REPO_REF="${GITHUB_REF}"
--build-arg LLPC_REPO_SHA="${GITHUB_SHA}"
--build-arg LLPC_BASE_REF="${{ github.base_ref }}"
--tag llpc/ci-shaderdb