Skip to content

Commit 3bc0c98

Browse files
committed
only unpack clang-tidy/clang-format
1 parent aba8c0b commit 3bc0c98

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/build-ci-container-tooling.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ jobs:
4545
echo "container-format-filename=$(echo $container_name-format:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
4646
echo "container-lint-filename=$(echo $container_name-lint:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
4747
48-
# The default Docker storage location for GitHub Actions doesn't have
49-
# enough disk space, so change it to /mnt, which has more disk space.
50-
- name: Change Docker storage location
51-
run: |
52-
sudo mkdir /mnt/docker
53-
echo '{ "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json
54-
sudo systemctl restart docker
55-
5648
- name: Build container
5749
run: |
5850
podman build --target ci-container-code-format \

.github/workflows/containers/github-action-ci-tooling/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ RUN apt-get update && \
77
apt-get install -y wget xz-utils && \
88
wget -O llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_VERSION}/LLVM-${LLVM_VERSION}-Linux-X64.tar.xz && \
99
mkdir -p /llvm-extract && \
10-
tar -xvJf llvm.tar.xz -C /llvm-extract LLVM-${LLVM_VERSION}-Linux-X64/bin/ && \
10+
tar -xvJf llvm.tar.xz -C /llvm-extract \
11+
# Only unpack these tools to save space on Github runner.
12+
LLVM-${LLVM_VERSION}-Linux-X64/bin/clang-tidy \
13+
LLVM-${LLVM_VERSION}-Linux-X64/bin/clang-format && \
1114
rm llvm.tar.xz
1215

1316

0 commit comments

Comments
 (0)