Promotion from AMD internal branch for 2024.Q3.2 #3966
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |